Re: Reusing connections for multiple commands - WeOnlyDo Discussion board

Re: Reusing connections for multiple commands (General questions)

by woddrazen, Wednesday, April 06, 2011, 09:11 (4759 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-asynchronous-connection

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-synchronous-connection

Let us know how it goes.


Regards,
Drazen


Complete thread: