The Run script action allows you to run a script from a local directory or a network path on the device.
| General | |
|---|---|
| Type | Run script |
| Name | Give actions descriptive names that accurately convey what they do. |
| Script engine | The script engine to use when executing the script:
|
| Script | Select the path to the script file that will be executed. |
| Arguments | Insert the arguments for the script file. |
| Directory | Select the working directory. |
| Advanced | |
|---|---|
| Context | The level at which the action is executed, User or Device. |
| Display | The way the process should be started:
|
| Engine arguments | Insert the arguments you want to pass to the script engine. |
| Success return codes | The return code(s) that will be evaluated against the set filtering. You can specify multiple return codes by delimiting them with spaces. |
| Redirect standard output to variable | The temporary variable to which the standard output of a command line program is stored. This option is available only if Display is set to Hidden. |
| Redirect error output to variable | The temporary variable to which the standard error of a command line program is stored. This option is available only if Display is set to Hidden. |
| Place return code in variable | The temporary variable to which the return code of a command line program is stored. |
| Filters |
|---|
| Define conditions under which the action is executed. For more information, see Filters. |
To edit an output variable, clicking the browse button for the Redirect standard output to variable, Redirect error output to variable, Place return code in variable fields. In the Edit output variable window that opens, you can create new variables or change existing ones and use them to store the standard output, error output or return code.
NOTE: The resulting variables exist temporarily, until the action is executed; they are not saved anywhere and they are displayed only in the package in which you configured them.
Output variable options
| Element | Description |
|---|---|
| Variable | New or existing variable in which you want to store information. |
| Sensitivity |
|
| Trim value | Removes all whitespace from the front, end or both. |
| Append to existing value (if it exists) | Appends the new variable at the end of the existing one. |
Agent
It requires the Agent to be running.
Supported platforms
| Platform | Supported |
|---|---|
| Web | No |
| Windows | Yes |
| macOS | Yes |