$ (for example,
SCRIPT command dialog
The Edit Command dialog for the SCRIPT command is similar to the SYSTEM command dialogs. See SCRIPT command reference for a description of the
HALT parameter and command syntax.
SCRIPT command reference
The SCRIPT command has the following syntax:
SCRIPT [-HALT] [SuccessCodes=…] "scriptFilename" ["argument"... ]
- Stop the script execution when a service/daemon is requested. When not specified, the service/daemon may not shutdown until the script has finished executing.
- For the SCRIPT commands, VersaLex allows you to define integer value exit codes to consider successful. To define these codes, the optional parameter,
[SuccessCodes=...], must precede the command string. The values specified are the exit codes (and code ranges) your application considers to be successful. Within the list, use commas to separate codes and code ranges (low to high). By default, either zero or undefined (no return code) are considered successful.
- Optional argument(s) to pass to the script. Macro variables are supported. See Using Macro Variables (SYSTEM and SCRIPT Command context) for a list of the applicable macros.