Re: Login, su to root, execute command (General questions)
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:
- 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