Documentation/Scripts/Running Scripts
From ScriptRunner
Documentation :: Scripts :: Running Scripts
- From the menu, select Run Scripts.
- ScriptRunner will now show the input (arguments) for the selected scripts.

Provide the information requested on screen. Should one of the boxes turn red then this means the value has failed validation. Scripts should be set up in Manage Scripts to make it clear what is required from a user to run the script.
- ScriptRunner will now attempt to run the requested script. The Run window will now change to also show the output and status of the script. The status definations are below.
- NOT_STARTED: ScriptRunner has yet to prepare the script to be run.
- PENDING: ScriptRunner has prepared the script to be run and it waiting for it to be started. The wait could be from either waiting for a remove agent to pick up the script, or because the host the script runs on is currently offline or currently executing it's maximum permitted number of concurrent scripts.
- RUNNING: The script has been started and is still in the process of being executed.
- COMPLETE: The script has finished running and provides a successful return code.
- ERROR: The script has finished running and provided a non-successful return code, or ScriptRunner experienced an issue with trying to start this script. Should ScriptRunner encounter an issue with running a script, further information should be provided in the on screen log output for you.
- You can either continue to monitor the script while it is running, or close the Run window by selecting
.
- Once the script has finished, the status will either show COMPLETED or ERROR status and other run information will be populated at the top of the Run window.

- The output from the script will be saved in ScriptRunner for as long as defined in Manage Scripts for this script, and viewable by using the View Script Execution History option in the main menu.