Re: Start complex UNIX-Script with wodSSH (General questions)
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:
- Start complex UNIX-Script with wodSSH - Zitterbacke, 2006-03-28, 08:24
- Re: Start complex UNIX-Script with wodSSH - wodDrazen, 2006-03-28, 09:55
- Re: Start complex UNIX-Script with wodSSH - Zitterbacke, 2006-03-28, 10:44
- Re: Start complex UNIX-Script with wodSSH - wodDrazen, 2006-03-28, 11:19
- Re: Start complex UNIX-Script with wodSSH - wodSupport, 2006-03-28, 11:54
- Re: Start complex UNIX-Script with wodSSH - Zitterbacke, 2006-03-28, 12:08
- Re: Start complex UNIX-Script with wodSSH - wodSupport, 2006-03-28, 12:40
- Re: Start complex UNIX-Script with wodSSH - Zitterbacke, 2006-03-30, 07:50
- Re: Start complex UNIX-Script with wodSSH - wodSupport, 2006-03-28, 12:40
- Re: Start complex UNIX-Script with wodSSH - Zitterbacke, 2006-03-28, 12:08
- Re: Start complex UNIX-Script with wodSSH - wodSupport, 2006-03-28, 11:54
- Re: Start complex UNIX-Script with wodSSH - wodDrazen, 2006-03-28, 11:19
- Re: Start complex UNIX-Script with wodSSH - Zitterbacke, 2006-03-28, 10:44
- Re: Start complex UNIX-Script with wodSSH - wodDrazen, 2006-03-28, 09:55