Lin.SSH.Command
Top  Previous  Next


Executes Linux secure shell command

A connection must be established with Lin.SSH.Logon before the Lin.SSH.Command can be used.

Use this command to create home directories, set permissions, copy files etc. on a remote Linux machine.

In order to detect errors the Lin.SSH.Command command analyzes the feedback from each command executed. If the executed command returns nothing, it will be considered as OK. If the executed command returns something it will be considered as an error, the script will stop and the returned message will be displayed as an error. The Lin.SSH.Command command is therefore only useful for "silent" commands like "mkdir", "cp", "chown" etc.

Requirements
·Linux server with OpenSSH SSH daemon, configured to accept SSH2 connections on port 22.  

Category

Linux

Script section
All

Lin.SSH.Command
TimeOut, Command

Timeout
Seconds, 3-60000  

Any command that does not finish within the timeout period will stop and return an error  

Command
Command to execute / program to run + command line parameters. Remember to specify full path for executables unknown to the system.  

Examples
1) Create a directory in current directory (/root/ if connection established with root user)

Lin.SSH.Command 3, mkdir MyDir

2) Create a directory in /home/

Lin.SSH.Command 3, mkdir /home/MyDir

(Windows users should remember that Linux file and directory names are case sensitive.)