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

by Logan, (6153 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

locked

Complete thread: