Back to product page
- Introduction
- License agreement
- Classes
- Enumerations
- Exceptions
- WeOnlyDo.Client.SSH
- Methods
- Properties
- AllocatePty
- Authentication
- Blocking
- Columns
- Command
- Compression
- DataOut
- DataReady
- Encryption
- EncryptionList
- ExitSignal
- ExitStatus
- FingerPrintType
- FIPS
- ForwardHost
- ForwardPort
- HMacList
- Hostname
- KeepAlives
- KeyExchangeList
- KeyFowarding
- Login
- Password
- Port
- PrivateKey
- Prompt
- Protocol
- ProxyHostname
- ProxyLogin
- ProxyPassword
- ProxyPort
- ProxyType
- RemoteIdentification
- Rows
- ShowStdErrorMessages
- State
- StripANSI
- Subsystem
- TerminalType
- Timeout
- Version
- Events
- How to get support?
Command property
Command to be executed immediately after successful connection.
Type
String. Specifies command that will be executed once wodSSH.NET connects to the server, instead of the shell.Syntax
- C#
- VB.NET
String Command {get; set; };
Property Command As String
Remarks
If Command property is set, then wodSSH.NET will execute specified command instead of obtaining shell on the server. After the command is executed and results are returned (and provided through DataReceived event), connection with the server will be closed. This property is very useful if you need to execute specific command and logout, because it will handle all the work for you.Note that when you set this property, wodSSH.NET will internally also set AllocatePty to False.