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?
PromptReceivedEvent event
Fires when wodSSH.NET receives prompt string from the server.
Syntax
- C#
- VB.NET
delegate void PromptReceivedDelegate(object Sender, EventArgs Args);
Delegate Sub PromptReceivedDelegate(ByVal Sender As Object, ByVal Args As EventArgs)
Remarks
If you set Prompt property (before or during the connection with the server), wodSSH.NET will fire this event each time it received same string sequence as you defined in Prompt property.This is very handy event to determine WHEN to send new commands, because you don't have to parse received data to determine if command output has finished or not.
Also, if Prompt property is set, you will never receive same string sequence when Receive method is called. This makes easy to examine command output operation.