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

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

by wodDrazen, Tuesday, March 28, 2006, 09:55 (6815 days ago) @ Zitterbacke

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: