Re: Question about SSH ActiveX Control - WeOnlyDo Discussion board

Re: Question about SSH ActiveX Control (General questions)

by wodDamir, Monday, March 03, 2008, 17:51 (6108 days ago) @ Josh

Josh,

When you use WaitFor method, it strips everything received from the buffer. That means that when you call Receive method, the string received by WaitFor won't be shown (since it's no longer in the buffer).

You should use WaitFor as a function. I.e:

dim a as string
a=ssh.WaitFor( prompt )

and then append the next waitfor to a etc.

This way you will receive everything.

Can you try this?

Regards,
Damba


Complete thread: