> how I thought that it was supposed to work was it would allow me to use
> sbp.communicate() to
> send stuff to the stdin, and get information out. What do get is a prompt
> ask for my password.
I believe that su does not read its input from stdin but from its
controlling tty. So you'd have to o
"Alan Gauld" <[EMAIL PROTECTED]> wrote
> Oddly I just tried some experiments and I can't get subprocess
> to work with the stdout=PIPE option, it used to...
>
> Anyone have any idea what my obvious mistake is?
>
> Traceback (most recent call last):
> File "", line 1, in ?
> File "C:\Python24\li
"Tino Dai" <[EMAIL PROTECTED]> wrote
> PIPE=subprocess.pipe
Not sure why you need this?
> sbp=subprocess.Popen
> (["su","-",stdin=PIPE,stdout=PIPE,close_fds=True,shell=True)
and I'm not sure what that [ is doing in there? I assume you meant
to have a closing ] after the "-"?
Have you looked a
Tino Dai wrote:
> Hi there,
>
> I'm have a tough time figuring out how to get su and subprocess
> working. I have
>
> PIPE=subprocess.pipe
>
> sbp=subprocess.Popen(["su","-",stdin=PIPE,stdout=PIPE,close_fds=True,shell=True)
>
>
>
> how I thought that it was supposed to work was it would all
Hi there,
I'm have a tough time figuring out how to get su and subprocess
working. I have
PIPE=subprocess.pipe
sbp=subprocess.Popen
(["su","-",stdin=PIPE,stdout=PIPE,close_fds=True,shell=True)
how I thought that it was supposed to work was it would allow me to use
sbp.communicate() to
send