Re: Read buffer out of waitfor? - WeOnlyDo Discussion board

Re: Read buffer out of waitfor? (General questions)

by Logan, Thursday, July 03, 2008, 19:17 (5986 days ago) @ woddrazen

I solved this problem with this little bit of code thanks to your help Drazen, you are the best!

ssh.send command & LF
response.write command sent, please wait...<br>
response.flush
do until cmdend = 1
ssh.DataReady = 0
sshoutput = ssh.receive
sshoutput = replace(sshoutput,LF, <br> )
response.write sshoutput
response.flush
if instr(sshoutput, # ) <> 0 then
cmdend = 1
response.write <p>complete...<br>
End if
Loop


Complete thread: