|
 |
To run a shell script first save the script in a file say shhscript then run the script using the sh command. example
sh shhscript
Common mistakes made during shell scripting
* while using expr or for assigning piped commands to a variable ,use the
back quote `(over the tab key) and not the single quote ' near the enter key.
* There should be spaces inside the third brackets in decision/loop commands
eg
while [ $i -le 150 ]
if [ $min -ge 50 ]
* To kill a program you made(in case it entered into an infinite loop),find
the program in ps -ax list with the name sh and kill it.

|
 |
|
.
Feedback, query, ideas? Email crenshaw_jo@yahoo.com.
|
|
|
 |