Last update 30-Jun-2005
MBSE BBS - Error return codes.
Following is a list of return codes from all official mbse programs and utilities. These codes can be used in scripts. If a program exits normally, the return code is 0. If a program exits by a signal, the return code is the signal number. This means if you kill a running program with a SIGTERM, the programs exits with the SIGTERM error number. On most platforms this is 15. These errorcodes are for the most part the same on all *nix platforms but because of some small differences I cannot list these here. Just do a kill -l to see a list of errors for your own platform.
Here is the list of other return codes:
- Commandline error
- Configuration error
- Initialisation error
- A full disk partition
- UPS alarm detected
- No valid recipients
- Execute external program failed
- Set tty failed
- File transfer error
- File attach failed
- Can't lock program, retry later
- Node not in nodelist
- Node may not be called
- Can't make connection
- Can't open tty port
- Node is locked
- Node IP address not found
- Unknow session type
- Not Zone Mail Hour
- Modem error
- No modemport available
- Session error (password)
- EMSI session error
- FTSC session error
- WaZoo session error
- YooHoo session error
- Outbound scan error
- Can't make poll
- File request error
- Error processing nodediff
- Virus found
- General error
- Timeout error
The mailer can also return the following error codes:
- TTY general error
- TTY timeout
- TTY EndOfFile
- TTY Hangup
- TTY Empty
When an external program is run, a mbse program can exit with return code 256 + the return code of the external program. So if the external program exits with error code 7, the code returned by the mbse program is 263.