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

Why are there shells on the beach?

841


What does it mean by #!/Bin/sh or #!/Bin/bash at the beginning of every script?

811


Determine the output of the following command: name=shubham && echo ‘my name is $name’.

770


What are "c" and "b" permission fields of a file?

778


How do I run a .sh file?

803


Why is the use of shell script?

761


What is a program shell?

816


What does chmod do?

772


Explain about shebang?

827


What are the disadvantages of shell scripting?

865


What is bash coding?

694


What are the advantages of shell script?

734


What is the best shell scripting language?

780


What is the use of echo in shell script?

791


What does sh mean?

813