Wait of the end of a UNIX-Commando (wodSSH / wodSSH.NET)
Hallo!
I test the Evaluation Version under VBasic6/XP.
This is a simple question:
Who is the best way, to wait of the end of a UNIX-Commando.
Synchron waiting!
Private Sub cmdStart2_Click() 'Click Button
GetLoginInfo
wodSSH1.Blocking = True
wodSSH1.StripANSI = True
wodSSH1.Protocol = SSHAuto
wodSSH1.Timeout = 5
......
????????????????????????????????????
After the end of the UNIX-Script
continue here
????????????????????????????????????
End Sub
Can You send me a Sample Code?
Regards, from Bavaria (Germany)
F.S.
Re: Wait of the end of a UNIX-Commando
Zitterbacke,
I suggest you refer to this post:
http://www.weonlydo.com/index.asp?forum=1&action=view&topic=1100211908
in short, make sure you set Ssh.Blocking = True prior to connecting, and then use WaitFor method to wait for predefined string (command prompt), then send command, then call WaitFor again to wait for command prompt again etc..
Hope that helps.
Regards from Croatia :)
Kreso
Re: Wait of the end of a UNIX-Commando
[:wink:]
It's ok.
You have programming a great Program,
with a good Documentation (wodSSH.chm) and a good Support.
We buy it!!!
Regards, from
office_for_survey_and_geoinformation.munich.bavaria.germany
www.blva.de
F.S.