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, 13:58 (7107 days ago) @ wodSupport

Thanks a lot for the example you provided me.

I've just one more question:

when I use the command “Ssh1.WaitFor( regex:[$ #>] $ , 5)” I have to know in advance what prompt to expect (regex:[$ #>] $).

What shall I do if I don't know what the prompt will be like ? (the system administrator could change it)

I tried to set it from my application with a command export PS1= .... but with no success.

Is it possible to adjust your example to manage this problem?



Complete thread: