Re: OpenVMS no prompt returning in output - WeOnlyDo Discussion board

Re: OpenVMS no prompt returning in output (General questions)

by woddrazen, Wednesday, January 13, 2010, 13:51 (5429 days ago) @ mmorton

Hi,


Why don't you catch prompt and output using WaitFor Method?

Something like this without using loop:
[code]_sshConnection.Send( show queue /BRIEF & vbCrLf)
Debug.Print _sshConnection.WaitFor( $ )[/code]
or this:
[code]_sshConnection.Send( show queue /BRIEF & vbCrLf)
Debug.Print _sshConnection.WaitFor( regex:[\$ #>] $ )[/code]
More help for Waitfor Method you can find here:
http://www.weonlydo.com/SSH.NET/Help/WeOnlyDo.Client.SSH.WaitFor_overload_2.html

Let us know how it goes.


Regards,
Drazen


Complete thread: