Re: Login, su to root, execute command - WeOnlyDo Discussion board

Re: Login, su to root, execute command (General questions)

by M, Friday, November 12, 2004, 15:50 (7107 days ago) @ wodSupport

M,

that's the best part - it will most probably work. 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). Why don't you give it a try?

Sorry,
the command WaitFor doesn't translate regular expressions.
It always looks for the exact string.
If I use the command locSSH.WaitFor( [$ #>] $ , 5) it looks for a prompt like this [$ #>] $
My prompt is $PWD > , how can I do?

Thanks, bye

M


Complete thread: