Executing and interrupting scripts

A number of ways of executing scripts are available. For example, on the stream script or standalone script dialog, the "Run this script" button executes the complete script:

Figure 1. Run This Script button
Run This Script button

The "Run selected lines" button executes a single line, or a block of adjacent lines, that you have selected in the script:

Figure 2. Run Selected Lines button
Run Selected Lines button

You can execute a script using any of the following methods:

  • Click the "Run this script" or "Run selected lines" button within a stream script or standalone script dialog box.
  • Run a stream where Run this script is set as the default execution method.
  • Use the -execute flag on startup in interactive mode. See the topic Using command line arguments for more information.
Note: A SuperNode script is executed when the SuperNode is executed as long as you have selected Run this script within the SuperNode script dialog box.

Interrupting script execution

Within the stream script dialog box, the red stop button is activated during script execution. Using this button, you can abandon the execution of the script and any current stream.