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