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 |
How do you debug a script?
Explain about return code?
What is shell and shell script?
What are the zombie processes?
What is shift command in shell script?
how to read systems current date and time
Set up a Sev 2 alert when the Primary WA service fails. A windows batch script needs to be created that will monitor the WA service on the Primary and when the service stops/fails a Sev 2 TT is generated for a particular team ?
I want to create a directory such that anyone in the group can create a file and access any person's file in it but none should be able to delete a file other than the one created by himself.
Why is used in shell scripting?
What is the command to find out users on the system?
What is the need of including script interpreter in your shell script?
What does $@ mean in shell?