Re: Read buffer out of waitfor? (General questions)
Logan,
I don't see anything like that in help file. WaitFor does remove buffer contents if pattern is received, but not if it times out, in which case buffer remains intact.
In that case, you need to ignore the exception and invoke Receive.
Something like this:
[code]ssh1.HostName = xxxx
ssh1.Login = xxxx
ssh1.Password = xxxx
ssh1.Protocol = SSHAuto
ssh1.Blocking = True
ssh1.Connect
On Error Resume Next
Debug.Print ssh1.WaitFor( joe@debian , 5) 'this is an incorrect prompt pattern to simulate the error
MsgBox ssh1.Receive[/code]
Hope this helps.
Regards,
Damba
Complete thread:
- Read buffer out of waitfor? - Logan, 2008-07-02, 12:55
- Re: Read buffer out of waitfor? - wodDamir, 2008-07-02, 13:08
- Re: Read buffer out of waitfor? - Logan, 2008-07-02, 17:01
- Re: Read buffer out of waitfor? - woddrazen, 2008-07-02, 17:41
- Re: Read buffer out of waitfor? - Logan, 2008-07-03, 19:17
- Re: Read buffer out of waitfor? - woddrazen, 2008-07-02, 17:41
- Re: Read buffer out of waitfor? - Logan, 2008-07-02, 17:01
- Re: Read buffer out of waitfor? - wodDamir, 2008-07-02, 13:08