Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Anchor
1089610
1089610
The _halton built-in variable specifies a UDM return code value that causes UDM to terminate if that value is:

  • Greater than 0
  • Equaled or exceeded by the return code value in the _rc variable
Note
titleNote

If the _halton value is 0, and the return code in _rc is 0, UDM will not terminate.


Anchor
1089614
1089614
Each UDM command has a return code indicating its level of success or failure:

  • 0 / none: Success or no error
  • 4 / warn: Warning has been issued
  • 8 / error: Error has occurred
  • 16 / fatal: Fatal error has occurred

Anchor
1089622
1089622
The value of _halton can be set using the set command. You also can use the convenience values of none, warn, error, and fatal (indicating 0, 4, 8, and 16, respectively) to set the value of _halton:


Panel
set _halton=error


Note
titleNote

To use _halton with the _execrc internal variable requires scripting similar to the following example.


Panel
exec cmd ...
if $(_execrc) GE $(_halton)
   set _rc=$(_execrc)
   exit
end