Re: Start complex UNIX-Script with wodSSH (General questions)
Hi,
Maybe you have problem with prompt that you expecting to receive from server, you can try to change lines:
frmTarn.wodSSH1.WaitFor (Login & @ & LCase(Hostname))
fncWartenEndeSSH = (frmTarn.wodSSH1.Execute(UNIX_Kommando & vbLf, Login & @ & LCase(Hostname), 10))
with
frmTarn.wodSSH1.WaitFor( regex:[$ #>] $ )
fncWartenEndeSSH = (frmTarn.wodSSH1.Execute( UNIX_Kommando & vbLf, regex:[$ #>] $ , 10))
Regular expression ( $ #>] ) means it will accept any of those chars ($, ,#,>) if they appear at the end of the line.
This includes 99.9 of most UNIX command prompts (including root account).
Let us know how it goes.
Regards,
Drazen
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