What are the different methods available to run a shell
script?
Answers were Sorted based on User's Feedback
Answer / keerthi
3 ways
1. sh scriptname.sh
2. If the script has execute permission -
./script.sh
3. If the script has execute permission and is
stored in the directory listed in PATH ----
script.sh or .script.sh
| Is This Answer Correct ? | 13 Yes | 0 No |
Answer / sujitha
3 ways
1. Execute Shell Script using File name
$./scriptfile { The changes in the script effect to current
terminal }
2 . Execute Shell Script by specifying the interpreter
$sh scriptfile
3. Execute Shell script using ../ (dot space dot slash)
$. ./scriptfile { The changes in the script effect to total
system }
| Is This Answer Correct ? | 0 Yes | 0 No |
What can scripts do?
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.
c program which accept one argument as a directory name and prints all the file name along with its inode number and total count of the file in directory
What is shell application?
What are the additional egrep symbols?
What is the use of "$#" in shell scripting?
Is shell script a programming language?
What will happen to my current process when I execute a command using exec?
Why we are writting shell scripts? Plz if possible explain it briefly.
I Forgot My Windows Vista Password! How Can I Find My Windows Lost Password?
Determine the output of the following command: [ -z “” ] && echo 0 || echo 1
How to print some text on to the screen?