Re: Reusing connections for multiple commands (General questions)

by woddrazen, (5200 days ago) @ jdlogicman

Hi,


Yes, you can send multiple command in non blocking mode using PromptReceived Event.

Here is example:
http://www.weonlydo.com/code.asp?did=Send-multiple-commands-to-SSH-server-using-asynchr...

if you prefer to use blocking mode, then you can use WaitFor and Execute Method to send multiple command.

Here is blocking sample:
http://www.weonlydo.com/code.asp?did=Send-multiple-commands-to-SSH-server-using-synchro...

Let us know how it goes.


Regards,
Drazen

locked

Complete thread: