Re: Catch the prompt with regex - WeOnlyDo Discussion board

Re: Catch the prompt with regex (General questions)

by wodDamir, Friday, March 14, 2008, 11:11 (6098 days ago) @ emcemc

emc,

In both casese (SSH and Telnet) the PromptReceived Event will be triggered if Prompt property is specified, and wodSSH receives it. When this occures, it's usually a sign that you can execute a new command.

As for receiving the data, you should use Received Event instead. Just call Receive method in order to receive all the data.

Ofcourse, this applies to non-blocking mode.

Regards,
Damba


Complete thread: