Using Execute/Receive method when CMD returns larg - WeOnlyDo Discussion board

Using Execute/Receive method when CMD returns larg (General questions)

by Sunny, Friday, December 05, 2008, 21:57 (5831 days ago)

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: