A Return codes

The various scripts that form the WildlifeSystems ecosystem use a standard set of return codes.

A.1 00-09 Script functionality

Code Label Description
0 OK Terminated normally. No error.
1 Already running The script determined it was already running and terminated.
2 No arguments The script requires arguments but none given. Will give help text.

A.2 10-19 Parameter problems

Code Label Description
10 Invalid argument One or more of the arguments to the script was invalid.
11 Incorrect filename pattern A standard filename pattern was expected. Allowed values are ‘timestamp’.

A.3 20-29 Sensor problems

Code Label Description
20 Unknown device This device is not supported, or software is not installed.
21 Unknown sensor This sensor is not known on this device.

A.4 30-39 Sound device problems

Code Label Description
30 Unsupported device The specified device is unsupported.
31 Unsupported feature This feature is not present on the sound device.
32 Unknown feature The feature requested is unknown.

A.5 40-49 Image device problems

Code Label Description
40 Unsupported device The specified device is unsupported.
41 Unsupported feature This feature is not present on the sound device.
42 Unknown feature The feature requested is unknown.

A.6 50-59 Power management problems

Code Label Description
50 Disallowed value (should be on or off) The specified device is unsupported.
51 Disallowed value (should be on, off or default) This feature is not present on the sound device.

A.7 60-69 Special meanings

Code Label Description
60 Identify as a sensor device script Returned by sensor device script in response to first parameter identify.