Follow the steps below to execute an SSH command that returns the file name and sizes for all files in a home directory and saves the output to a file:
From within the Project Designer page, navigate to the
Application
Native Calls
folder in the Component Library, and then drag the Execute SSH Command task to the Project Outline.
On the Basic tab of the Execute SSH Command task, specify the SSH Server and Command:
SSH Server
Select a pre-configured SSH server from the drop-down list.
Command
Specify the command to execute on the remote system.
On the Advanced tab, specify where the output of the command will be redirected to:
Redirect Output To
Specify where the standard output from the command, if any, will be directed. By default, the output will be written to the job log.
Output File
Specify the output file path and name of where you want the output written to. This is required when redirecting output to a file.