Re: Login, su to root, execute command (General questions)
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:
- Login, su to root, execute command - wodSupport, 2004-11-11, 23:25
- Re: Login, su to root, execute command - M, 2004-11-12, 13:58
- Re: Login, su to root, execute command - wodSupport, 2004-11-12, 14:29
- Re: Login, su to root, execute command - M, 2004-11-12, 15:50
- Re: Login, su to root, execute command - wodSupport, 2004-11-12, 15:52
- Re: Login, su to root, execute command - M, 2004-11-12, 18:01
- Re: Login, su to root, execute command - wodSupport, 2004-11-12, 18:02
- Re: Login, su to root, execute command - iyikedi, 2005-03-21, 19:12
- Re: Login, su to root, execute command - wodSupport, 2005-03-21, 20:12
- Re: Login, su to root, execute command - Kaliorin, 2005-08-19, 09:08
- Re: Login, su to root, execute command - wodSupport, 2005-08-19, 11:01
- Re: Login, su to root, execute command - kaliorin, 2005-08-19, 11:09
- Re: Login, su to root, execute command - kaliorin, 2005-08-19, 16:06
- Re: Login, su to root, execute command - wodSupport, 2005-08-19, 17:26
- Re: Login, su to root, execute command - Kaliorin, 2005-08-22, 16:07
- Re: Login, su to root, execute command - shin, 2008-05-27, 05:37
- Re: Login, su to root, execute command - shin, 2008-05-27, 05:39
- Re: Login, su to root, execute command - wodDamir, 2008-05-27, 09:26
- Re: Login, su to root, execute command - shin, 2008-05-30, 05:13
- Re: Login, su to root, execute command - shin, 2008-05-30, 05:26
- Re: Login, su to root, execute command - woddrazen, 2008-05-30, 09:11
- Re: Login, su to root, execute command - shin, 2008-06-09, 09:38
- Re: Login, su to root, execute command - woddrazen, 2008-06-09, 10:02
- Re: Login, su to root, execute command - shin, 2008-06-23, 10:40
- Re: Login, su to root, execute command - woddrazen, 2008-06-23, 11:50
- Re: Login, su to root, execute command - shin, 2008-06-24, 03:54
- Re: Login, su to root, execute command - shin, 2008-06-24, 03:59
- Re: Login, su to root, execute command - wodDamir, 2008-06-24, 09:14
- Re: Login, su to root, execute command - shin, 2008-06-24, 03:59
- Re: Login, su to root, execute command - shin, 2008-06-24, 03:54
- Re: Login, su to root, execute command - woddrazen, 2008-06-23, 11:50
- Re: Login, su to root, execute command - shin, 2008-06-23, 10:40
- Re: Login, su to root, execute command - woddrazen, 2008-06-09, 10:02
- Re: Login, su to root, execute command - shin, 2008-06-09, 09:38
- Re: Login, su to root, execute command - woddrazen, 2008-05-30, 09:11
- Re: Login, su to root, execute command - shin, 2008-05-30, 05:26
- Re: Login, su to root, execute command - shin, 2008-05-30, 05:13
- Re: Login, su to root, execute command - wodDamir, 2008-05-27, 09:26
- Re: Login, su to root, execute command - shin, 2008-05-27, 05:39
- Re: Login, su to root, execute command - shin, 2008-05-27, 05:37
- Re: Login, su to root, execute command - Kaliorin, 2005-08-22, 16:07
- Re: Login, su to root, execute command - wodSupport, 2005-08-19, 17:26
- Re: Login, su to root, execute command - kaliorin, 2005-08-19, 16:06
- Re: Login, su to root, execute command - kaliorin, 2005-08-19, 11:09
- Re: Login, su to root, execute command - wodSupport, 2005-08-19, 11:01
- Re: Login, su to root, execute command - Kaliorin, 2005-08-19, 09:08
- Re: Login, su to root, execute command - wodSupport, 2005-03-21, 20:12
- Re: Login, su to root, execute command - iyikedi, 2005-03-21, 19:12
- Re: Login, su to root, execute command - wodSupport, 2004-11-12, 18:02
- Re: Login, su to root, execute command - M, 2004-11-12, 18:01
- Re: Login, su to root, execute command - wodSupport, 2004-11-12, 15:52
- Re: Login, su to root, execute command - M, 2004-11-12, 15:50
- Re: Login, su to root, execute command - wodSupport, 2004-11-12, 14:29
- Re: Login, su to root, execute command - M, 2004-11-12, 13:58