tags:

views:

12

answers:

0

Hello, I am using tamir ssh for running commands remotely, as it is not possible to know command prompts for all the machine i decided to use this code

while (myFlag)
{
    **input = ssh.IO.ReadByte();**

    if(input==-1)
    {
        myFlag=false;
    }
    else
    {
        append in string builder
    }
}

I never get -1, the code just waits on read indefinately (The bold line, even when there is nothing to read). Anybody having any suggestions.