Wait of the end of a UNIX-Commando - WeOnlyDo Discussion board

Wait of the end of a UNIX-Commando (wodSSH / wodSSH.NET)

by Zitterbacke, Wednesday, January 19, 2005, 15:51 (7249 days ago)

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

by wodSupport, Wednesday, January 19, 2005, 23:19 (7249 days ago) @ Zitterbacke

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

by Zitterbacke, Thursday, January 20, 2005, 08:15 (7248 days ago) @ wodSupport

[: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.