how can you execute the shell scripts?

Answer Posted / chandru

If the path variable does not contain ur current
directory,then you can execute the script by giving
$./scriptname
If you include your current directory in path variable then
$scriptname

or
If u want to invoke new shell
$ ksh scriptname

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can the contents of a file inside jar be read without extracting in a shell script?

857


How does shell scripting work?

845


What is shell scripting used for?

757


What will happen to my current process when I execute a command using exec?

747


write a shell script to generate a alert ? like when ur birthday came then generate a alert ur birthday is today like that ?

3803


How will you print the login names of all users on a system?

737


Write a command sequence to find the count of each word?

739


What is basename in shell script?

797


What is k shell?

725


Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.

2249


What makes c shell a more preferable option than the bourne shell?

742


What does the sh command do?

817


What is web script?

778


What are the various stages of a linux process it passes through?

847


Why is shell scripting important?

758