Back to product page

PromptReceived event


Fires when the command prompt string is received.

Syntax

  • Basic
Private Sub object_PromptReceived()
The PromptReceived(object) syntax has these parts:
objectA wodSSH object.

Remarks

If you set the Prompt property before you initiated the Connect method, then wodSSH will fire this event each time it receives a string sequence which matches the one defined in the Prompt property.

This is a very handy way to determine WHEN to send new commands, because you don't have to parse received data to determine if the command output has finished or not. Also, if the Prompt property is set, you will never receive the same string sequence when the Receive method is called. This makes it easy to examine command output.

Platforms

Windows