| T O P I C R E V I E W |
| aawineco |
Posted - Feb 01 2008 : 09:35:14 AM Is there a location where the meaning of the exit status codes are listed? My email noted that exit status = 2. No log file was created. Since I don't know what this means, I don't really know how to debug it.
Thanks,
Amy |
| 1 L A T E S T R E P L I E S (Newest First) |
| aawineco |
Posted - Feb 01 2008 : 09:50:09 AM found it:
Exit codes are a number between 0 and 256, which is returned by any Unix command when it returns control to its parent process. Other numbers can be used, but these are treated modulo 256, so exit -10 is equivalent to exit 246, and exit 257 is equivalent to exit 1. These can be used within a shell script to change the flow of execution depending on the success or failure of commands executed.
Success is traditionally represented with exit 0; failure is normally indicated with a non-zero exit-code. This value can indicate different reasons for failure. For example, GNU grep returns 0 on success, 1 if no matches were found, and 2 for other errors (syntax errors, nonexistant input files, etc).
|
|
|