SCRIPT command reference

The SCRIPT command has the following syntax:

 
SCRIPT [-HALT] [SuccessCodes=…] "scriptFilename" ["argument"... ]
-HALT
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.
[SuccessCodes=…]
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.
"scriptFilename"
Local source path to the JavaScript file to execute.
"[argument]"
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.