Question on how to Clear buffer using WodSSH (wodSSH / wodSSH.NET)
I had a question regarding how to clear the receive buffer using WodSSH.
Currently have a VB6 program sending UNIX commands to a server. For some reason, when I send commands (via the Execute method) that result in a very large amount of data being returned, I run into a problem. I have data in the receive buffer from my previous command still remaining after I issue my next command. I wanted to know the best way to clear the receive buffer after I issue each command. The command I currently am sending is:
[code]sbuffer = mssh.Execute(sMessageTemp, sprompt, 120)[/code]
Thanks for your help
Re: Question on how to Clear buffer using WodSSH
Hi Scott,
You can try setting DataReady Property to 0 after each command that is executed. The DataReady Property holds the total number of bytes contained inside the buffer.
It should ensure that the next method ran by Execute will hold only it's result.
Hope this helps.
Regards,
Damba