Back to product page

Command property


Specifies the command to be sent to server upon connection.

Type

A String value. Command to send upon successful connection.

Syntax

  • Basic
object.Command [= value]
The Command(object,value) syntax has these parts:
objectAn expression evaluating to an object of type wodSSH.
valueA String value.

Remarks

If this property is set, wodSSH will try to execute the command upon successful connection. For SSH protocols this feature is implemented by the protocol specification. However, for the Telnet protocol it is possible for wodSSH to fail to execute the command you specify if the remote server is 'non-standard'.

Upon execution of the command, wodSSH will wait for output returned by the command, and will disconnect after receiving it.

Please note that if the Login and Password properties are not set, then the Telnet protocol will not be able to perform this operation. Also, setting this property causes AllocatePty to be set to False - so you must set it back to True if you wish after setting this command.

Platforms

Windows