A.2. Exit Codes

Much like any other executable binary, Promptar Server will return different exit codes depending on its exit condition. To determine it, use the $? environment variable in a Linux shell and the %ERRORLEVEL% one on a Windows command line shell.

The table below summarizes them.

exit code motive

0

Normal exit.

1

Normal exit - printed out version.

2

Normal exit - printed out usage syntax.

255

Invalid command line syntax.

253

Invalid syntax in general.conf.

Check the printed out message for details.

252

Missing configuration file: general.conf.

Check the printed out message for details.

251

Invalid logging configuration.

Check the printed out message for details.

250

Failed opening the log file for writing.

Can also represent a command execution failure, if <command> argument is used.

Check the printed out message and/or the log file for details.

249

Failed setting up the log.

Check the printed out message for details.

248

Invalid configuration in the general.conf file.

Could also have failed setting up core Windows event handlers.

Check the log file and/or the printed out message for details

247

Invalid license.

Check the log file for details.

246

Invalid configuration.

Check the log file for details.