Re: Python & Linux, some questions (2)
From: Simon Burton (simonb_at_NOTTHISBIT.webone.com.au)
Date: 03/16/04
- Next message: Fuzzyman: "Re: Replace accented chars with unaccented ones"
- Previous message: Simon Erikson: "wxPython "Frames within Frames""
- In reply to: Hamilcar Barca: "Re: Python & Linux, some questions (2)"
- Next in thread: Thomas Guettler: "Re: Python & Linux, some questions (2)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 16 Mar 2004 22:11:30 +1100
On Mon, 15 Mar 2004 20:45:53 -0700, Hamilcar Barca wrote:
> In article <c353om$23bqmc$1@ID-99001.news.uni-berlin.de> (Mon, 15 Mar 2004
> 21:28:47 +0100), Luca T. wrote:
>
>> r,w,e = popen2.popen3('su -c ls')
>>
>> So it seems that "su" refuses to work if it is run like this.
>
> su needs the user's password and it insists on reading it from a tty
> because it can control echoing.
Maybe pexpect can help you here. It works great on linux.
Simon.
- Next message: Fuzzyman: "Re: Replace accented chars with unaccented ones"
- Previous message: Simon Erikson: "wxPython "Frames within Frames""
- In reply to: Hamilcar Barca: "Re: Python & Linux, some questions (2)"
- Next in thread: Thomas Guettler: "Re: Python & Linux, some questions (2)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|