decorative banner

Previous | Next               Table Of Contents > 7 Error reporting > 7.1 Setting program exit codes

7.1 Setting program exit codes


The setexitcode command sets an exit code for the program that is passed back to the command shell on program termination. This is used to report error codes when running ftpshell scripts from the command line.

The syntax is

setexitcode <integer number>;

An example is

setexitcode 5;


Previous | Next