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 ...
|
|||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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? |
|
|||
|
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).
|
![]() |
| Thread Tools | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [gnu.bash.bug] BASH Frequently-Asked Questions (FAQ version 3.26) | Chet Ramey | Tech FAQ | 0 | 05-27-2004 11:00 AM |
| Scsh (a Unix Scheme shell) FAQ | Michel Schinz | Tech FAQ | 0 | 05-13-2004 04:30 AM |
| [gnu.bash.bug] BASH Frequently-Asked Questions (FAQ version 3.26) | Chet Ramey | Tech FAQ | 0 | 04-26-2004 11:00 AM |
| Motif FAQ (Part 4 of 9) | Ken Lee | Tech FAQ | 0 | 04-18-2004 09:54 AM |
| Scsh (a Unix Scheme shell) FAQ | Michel Schinz | Tech FAQ | 0 | 04-13-2004 04:30 AM |