Re: Catch the prompt with regex (General questions)
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:
- Catch the prompt with regex - emcemc, 2008-03-13, 18:15
- Re: Catch the prompt with regex - wodDamir, 2008-03-13, 18:25
- Re: Catch the prompt with regex - emcemc, 2008-03-14, 09:53
- Re: Catch the prompt with regex - wodDamir, 2008-03-14, 10:27
- Re: Catch the prompt with regex - emcemc, 2008-03-14, 10:53
- Re: Catch the prompt with regex - wodDamir, 2008-03-14, 11:11
- Re: Catch the prompt with regex - emcemc, 2008-03-14, 10:53
- Re: Catch the prompt with regex - wodDamir, 2008-03-14, 10:27
- Re: Catch the prompt with regex - emcemc, 2008-03-14, 09:53
- Re: Catch the prompt with regex - wodDamir, 2008-03-13, 18:25