DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Automating frequent tasks

What to do if something goes wrong

If your shell script stubbornly refuses to work, there are two possibilities:


An inappropriate environment means that the script is unable to run because the environment you are trying to run it in is not set up for it. For example, you cannot execute a Bourne shell script in the C shell with any expectation of success (unless you force the system to run the script under a Bourne shell by making the first line of the script #!/bin/sh). Alternatively, you may have forgotten to set the execute permission on the script, so that the shell fails to recognize it as a command. Or you may have told your script to read and act on an environment variable which is not present.
Next topic: Solving problems with the environment
Previous topic: Attaching a file to a file descriptor

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003