Re: Start complex UNIX-Script with wodSSH - WeOnlyDo Discussion board

Re: Start complex UNIX-Script with wodSSH (General questions)

by Zitterbacke, Thursday, March 30, 2006, 07:50 (6611 days ago) @ wodSupport

Hello Kreso, hello Alan!

Bingo!!!!!!!

Yes, it is a timeout-Problem!

I change the timeout to zero.
With this modification, I can start long running UNIX-Scripts.
Here is my new Code:

[code]
frmTarn.wodSSH1.Disconnect
frmTarn.wodSSH1.Hostname = Hostname
frmTarn.wodSSH1.Login = Login
frmTarn.wodSSH1.Password = Passwort
frmTarn.wodSSH1.Timeout = [color=#abcdef]0[/color]
frmTarn.wodSSH1.Blocking = True
frmTarn.wodSSH1.StripANSI = True
frmTarn.wodSSH1.Protocol = SSHAuto
frmTarn.wodSSH1.Connect

frmTarn.wodSSH1.WaitFor Login & @ & LCase(Hostname), [color=#abcdef]0[/color] ' Hernehmen des Gesamt-Prompt

If frmTarn.wodSSH1.DataReady > 0 Then frmTarn.wodSSH1.Receive

fncWartenEndeSSH = (frmTarn.wodSSH1.Execute(UNIX_Kommando & vbLf, Login & @ & LCase(Hostname), [color=#abcdef]0[/color] ))

[/code]

Thank you for good support (E-Mail, Forum)

Regards from Munich!
F.S.


Complete thread: