_execrc - UDM Built-in Variable


The _execrc built-in variable holds the completion value of the process executed by the last exec command issued. The type and range of the completion value is platform- and process-specific, independent of the UDM command return code, and does not affect either _lastrc or _rc.

The return code from the UDM exec command itself is stored in _lastrc and _rc, if the return code is greater than the current value of _rc). lastrc and _rc are affected only by a malformed UDM exec command or by a failure when attempting start execution of the process.

The difference between _execrc and _lastrc / _rc is that _execrc holds the value of the process external to UDM, whereas _lastrc and _rc are set based on errors encountered internal to UDM or UDM script processing. (See Remote Execution Requirements for more detailed information.)

The value of _execrc can be set using the set command.


Note

To exit UDM using _execrc based on the _halton value, use script similar to the following example.