Re: Testing WodSSH prompt (General questions)

by Tamir, (5666 days ago) @ woddrazen

Thanks!

I think that I use it quite different. Here's my procedure. Can you tell me if I can integrate it with your suggestion, and if so - how exactly?
Thanks

[code]
If ssh1.State = WODSSHCOMLib.StatesEnum.Connected Then
ssh1.Disconnect() 'True
End If

ssh1.Protocol = WODSSHCOMLib.ProtocolsEnum.SSHAuto
ssh1.Blocking = True

ssh1.Connect()

ssh1.WaitFor(my_prompt)

ret = (ssh1.Execute(strExec & vbLf, my_prompt, my_timeout))

[/code]

Tamir,


You can determine if prompt is correct using PromptReceived Event. When prompt from Prompt Property is received PromptReceived Event should be fired.

Can you please try that and let us know how it goes?

More help for PromptReceived Event you can find here:
http://www.weonlydo.com/SSH/Help/WODSSHLib~wodSSH~PromptReceived_EV.html


Drazen

locked

Complete thread: