Execute Terminal Command(s)

Use the Execute Terminal Command(s) activity to send terminal commands to a remote target.

Usage

Complete the following properties to use this activity:

  • Terminal - Specify the following information or click the Variable Reference icon to choose a variable:
    • Input Command(s) - Enter the SSH commands and other inputs.
    • Ends with special character (only if Send All The Lines As One Input selected) - Click the drop-down list and choose the option to place at the end of the lines that are sent with the command input. The available options are Ctrl_A through Ctrl_Z and Ctrl_Shift_6.
    • Multiple lines option - Click the radio button to select one of the following options:
      • Send all the lines as one input - Sends all lines in plain text as one input.
      • Send next line only if previous line succeeded - Sends a line as an input if there is a previous line before the input.
    • Individual Command Timeout (Seconds) - Enter a value to specify the time to wait for an individual user input to be completed before timing out.
      • Expects (regex) - Click Add and enter the following information or click the Variable Reference icon to choose a variable:
        • Failed (completed) - Enter the failed prompt prefix.
        • Succeeded - Enter the succeeded prompt prefix.
        • User Response - Enter the user response prompt prefix.

Paginated Output

When the Execute Terminal Command(s) activity is run with a command where the output is paginated because it is longer than a certain number of lines, the terminal session responds with a prompt such as "--More--" which waits for the user to respond (for example, with a " " space) before fetching more of the output. The action will continue to wait and eventually time out after receiving no response.

One way to avoid this timeout is to add the "terminal length 0" command before any other input commands. This command disables the paging of results and the "--More--" prompt in the terminal session, effectively displaying and scrolling through all the output continuously.

Terminal Length 0 Input Command