Using Execute/Receive method when CMD returns larg (General questions)
Hello,
I am running a command which returns about 8,000 lines. If I use the execute commad I receive a timeout error. If I use the receive method and loop throught until I find the prompt I get what entire result. I have been using Execute for my other stuff and it works fine. So is this an issue with Execute command or am I doing something wrong?
Using Execute
response = Ssh1.Execute(cmd +
, $ , 100);
Using Receive Method
Ssh1.Send(cmd+
);
bool continueReading = true;
while (continueReading)
{
response += Ssh1.Receive();
if (response.IndexOf( $ ) != -1)
{
continueReading = false;
}
}
Thanks,
Sunny
Complete thread:
- Using Execute/Receive method when CMD returns larg - Sunny, 2008-12-05, 21:57
- Re: Using Execute/Receive method when CMD returns - wodDamir, 2008-12-05, 22:03
- Re: Using Execute/Receive method when CMD returns - Sunnny, 2008-12-10, 17:18
- Re: Using Execute/Receive method when CMD returns - woddrazen, 2008-12-10, 17:29
- Re: Using Execute/Receive method when CMD returns - Sunnny, 2008-12-10, 17:18
- Re: Using Execute/Receive method when CMD returns - wodDamir, 2008-12-05, 22:03