Execute Linux/Unix SSH Command

Use the Execute Unix/Linux SSH Command activity to execute the specified SSH command on the target. To run this activity, SFTP and Korn Shell must be configured on the target.

Pipe is not supported by the Execute Unix/Linux SSH Command activity. If you need to execute pipe in an activity, we recommend that you add the pipe in the Execute Unix/Linux SSH Script activity.

For example, you can enter ps -ef in the Execute Unix/Linux SSH Command activity, but if you need to execute ps -ef | grep myusername, use the Execute Unix/Linux SSH Script activity.

Usage

Complete the following properties to use this activity:

  • Unix/Linux - Specify the following information or click the Variable Reference icon to choose a variable:
    • Input Command - Enter the actual command to execute an activity on the SSH server. The following are Terminal adapter command line examples:

      **Examples:**
      If your local working directory is: 
      ```
      /home/myusername/myappdata
      ```
      and the command is: 
      ```
      /myAppPath/myShellScript.sh
      ```
      the full path is
      ```
      /home/myusername/myappdata/myAppPath/myShellScript.sh
      ```
      On Unix systems:
      ```
      ls        
      /usr/bin/ls
      ```
      If your command is located at the directory of: 
      ```
      /myCommandPath
      ```
      and the command is: 
      ```
      myCommand
      ```
      the full path is: 
      ```
      /myCommandPath/myCommand
      ```
    • 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 to enter the regex character for Failed (Completed).