Re: Question about SSH ActiveX Control (General questions)

by wodDamir, (6333 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

locked

Complete thread: