Re: Reusing connections for multiple commands (General questions)
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:
- Reusing connections for multiple commands - jdlogicman, 2011-04-06, 01:24
- Re: Reusing connections for multiple commands - woddrazen, 2011-04-06, 09:11
- Re: Reusing connections for multiple commands - jdlogicman, 2011-04-06, 18:39
- Re: Reusing connections for multiple commands - wodDamir, 2011-04-06, 18:48
- Re: Reusing connections for multiple commands - jdlogicman, 2011-04-06, 21:01
- Re: Reusing connections for multiple commands - wodDamir, 2011-04-06, 21:15
- Re: Reusing connections for multiple commands - jdlogicman, 2011-04-06, 22:19
- Re: Reusing connections for multiple commands - wodDamir, 2011-04-06, 22:22
- Re: Reusing connections for multiple commands - jdlogicman, 2011-04-06, 22:19
- Re: Reusing connections for multiple commands - wodDamir, 2011-04-06, 21:15
- Re: Reusing connections for multiple commands - jdlogicman, 2011-04-06, 21:01
- Re: Reusing connections for multiple commands - wodDamir, 2011-04-06, 18:48
- Re: Reusing connections for multiple commands - jdlogicman, 2011-04-06, 18:39
- Re: Reusing connections for multiple commands - woddrazen, 2011-04-06, 09:11