How to do os.popen with write and read at the same time?

Jeff Collins collins at seal.aero.org
Tue Mar 14 12:02:55 EST 2000


Check out module popen2 in the standard library.

Jeff


Benyang Tang writes:
 > 
 > I like to do thing like:
 > 
 > stdin > grep 'something' >stdout
 > 
 > How do I access stdin and stdout in python?  
 > os.popen accepts either 'w' or 'r' mode, but not both at the same time.
 > -- 
 > http://www.python.org/mailman/listinfo/python-list
 > 




More information about the Python-list mailing list