> 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 open a pseudo terminal: have a look at
the pty module.

cheers,
Michael

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to