receive output (wodSSH / wodSSH.NET)
Hello Kreso,
Thanks for the reply.
Yes, I tried the same thing but problem is, when I am expecting some output using Receive method, it causes time out error as because the command which I run require 5-7 minutes to complete and after the complete execution that command gives the output.
I also defined the time out value for the wodssh object, but it didn't work.
Following is the code snippet,
printf(wodssh->Execute(command, expected_prompt));
string str = wodssh->Receive();
while (str.find("expected_string") != true)
{
Sleep(2000);
str = wodssh->Receive();
}
The above code causes time out error.
Can you please help me on this.
Thanks & Regards,
Ganesh Sankpal
Complete thread:
- receive output - ganesh sankpal, 2014-08-06, 16:44
- receive output - wodSupport, 2014-08-06, 19:58
- receive output - ganesh sankpal, 2014-08-07, 16:12
- receive output - wodSupport, 2014-08-07, 19:25
- receive output - Ganesh Sankpal, 2014-08-28, 10:51
- receive output - wodSupport, 2014-08-28, 15:22
- receive output - Ganesh Sankpal, 2014-09-02, 14:38
- receive output - wodSupport, 2014-09-02, 17:01
- receive output - Ganesh Sankpal, 2014-09-03, 08:34
- receive output - wodSupport, 2014-09-03, 09:49
- receive output - Ganesh Sankpal, 2014-09-03, 12:06
- receive output - wodSupport, 2014-09-03, 12:07
- receive output - Ganesh Sankpal, 2014-09-03, 13:04
- receive output - wodSupport, 2014-09-03, 13:49
- receive output - Ganesh Sankpal, 2014-11-12, 08:37
- receive output - Jasmine, 2014-11-12, 10:56
- receive output - Ganesh Sankpal, 2014-11-12, 14:33
- receive output - Jasmine, 2014-11-12, 16:33
- receive output - Ganesh Sankpal, 2014-11-13, 06:36
- receive output - Jasmine, 2014-11-13, 16:19
- receive output - Ganesh Sankpal, 2014-11-13, 06:36
- receive output - Jasmine, 2014-11-12, 16:33
- receive output - Ganesh Sankpal, 2014-11-12, 14:33
- receive output - Jasmine, 2014-11-12, 10:56
- receive output - Ganesh Sankpal, 2014-11-12, 08:37
- receive output - wodSupport, 2014-09-03, 13:49
- receive output - Ganesh Sankpal, 2014-09-03, 13:04
- receive output - wodSupport, 2014-09-03, 12:07
- receive output - Ganesh Sankpal, 2014-09-03, 12:06
- receive output - wodSupport, 2014-09-03, 09:49
- receive output - Ganesh Sankpal, 2014-09-03, 08:34
- receive output - wodSupport, 2014-09-02, 17:01
- receive output - Ganesh Sankpal, 2014-09-02, 14:38
- receive output - wodSupport, 2014-08-28, 15:22
- receive output - Ganesh Sankpal, 2014-08-28, 10:51
- receive output - wodSupport, 2014-08-07, 19:25
- receive output - ganesh sankpal, 2014-08-07, 16:12
- receive output - wodSupport, 2014-08-06, 19:58