Top
Systemwalker Operation Manager V17.0.1 Reference Guide

15.2.8 exit (Terminate a Script)

Description

Terminates the process of a script.

Synopsis

exit [returncode]

Option

returncode

Program completion code. Specify it between 0 and 128. If omitted, 0 is assumed.

Example

If the content of variable rc is a non-zero value, exits abnormally with that value being used as the completion code.

if {$rc != 0} {
      exit $rc
}