SSH2
This task allows you to login to a SSH2 server and issue commands. It will try and detect the presence of the command prompts, before sending the next command. If these prompts are not detected within the timeout value set, it will send the next command. This task is multithreaded, so you can run multiple SSH2 tasks simultaneously. This is useful if you are running long scripts on the server.
Ssh2/SFtp Profile
Select the Ssh2/SFtp profile for the SSh2/SFtp server you need to connect to. You should have previously created a SFtp profile using the SFtp Profiles menu item.
Polling Period
Enter the desired polling time. For each SSH2 command sent, the module will poll the connection, at the Polling interval, for the reply string from the server. If the last 10 characters (default value) of the reply string from the server contain the shell prompt, then the next command is sent. This polling period should be less than the command time.
SSH2 Prompt
This is usually the last character that the server outputs when it is done processing the current shell command. This value normally depends on the system shell you are connecting to. The task will look for shell prompt character in the last 10 characters (default value) of the reply string from the server. As soon as this character(s) is found, the next command is sent. If however, the shell prompt character is not found within the command time set, the next command is then sent.
Prompt Characters
This module waits for the shell prompts before sending the next command. It will search the last reply string from the SSH2 server for the shell prompt. You can control how far back in this reply string, that the module should search for these prompts. If you select Prompt Characters = 10 (default value), then the module will search the last 10 characters of the last reply string. If the shell prompt is found in these 10 characters, then the next command is sent. If your server sends a bunch of characters after the shell prompts (Example: MS Telnet server), then you may have to increase this value to 1000, to detect the shell prompt. As soon as this character(s) is found, the next command is sent.
Command Time
Enter the maximum time allowed for each command. If this command time has been exceeded, and the server has not replied back with a telnet command prompt, then the next command is sent.
Command
Enter your commands, 1 per line. Always enter the exit command on the last line. This field also supports dynamic variables. Using dynamic variables, you can enter a command which will be dynamically resolved at runtime. example: cd /users/$%USERNAME%$
Example of Commands to enter
ls -lt
cd /user/test
./runTestScript.scr
exit