The successful exit is always indicated by a status of 0. The meaning of the codes is approximately as follows:
Name | Code | Description |
---|---|---|
EX_USAGE | 64 | The command was used incorrectly, e.g., with the wrong number of arguments, a bad flag, a bad syntax in a parameter, or whatever. |
EX_DATAERR | 65 | The input data was incorrect in some way. This should only be used for user's data and not system files. |
EX_NOINPUT | 66 | An input file (not a system file) did not exist or was not readable. This could also include errors like "No message" to a mailer (if it cared to catch it). |
EX_NOUSER | 67 | The user specified did not exist. This might be used for mail addresses or remote logins. |
EX_NOHOST | 68 | The host specified did not exist. This is use |