Question on how to Clear buffer using WodSSH - WeOnlyDo Discussion board

Question on how to Clear buffer using WodSSH (wodSSH / wodSSH.NET)

by Scott, Wednesday, November 07, 2007, 15:36 (6005 days ago)

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


Complete thread: