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 >