
- Forum
- Operating Systems
- Shell Programming
- To run my Shell
To run my Shell
This is a discussion on To run my Shell within the Shell Programming forums, part of the Operating Systems category; I have a small shell script named as test.sh which I wanted to run. But when I give sh test.sh ...
-
To run my Shell
I have a small shell script named as test.sh which I wanted to run. But when I give
sh test.sh
It is not working.
I am sure there is nothing wrong in this shell script because I could run it by using . ./test.sh
Why is it not running in my previous case?
-
06-13-2007, 03:53 AM #2
- Join Date
- Jun 2007
- Answers
- 8
To run a shell script
to run the shell script in unix prompt before that we should change the file mode to rwx for ugo using chmod 777 <filename.extn>. and other things if you wnat run a korn shell then you simply run the script using shellscriptname with extension (eg: sample.ksh) and in borne shell you can run the script using sh shellscript name with extenstion (eg : sh sample.sh).

Reply With Quote





