read _and_ write from/to commandline program

Grant Edwards nobody at nowhere.nohow
Sat Apr 8 12:16:48 EDT 2000

On Sat, 08 Apr 2000 15:37:34 GMT, lamzak8642 at <lamzak8642 at> wrote:

>Is it possible to read from _and_ write to a commandline program (Linux
>+ Python)? Apparantly I can't do this with os.popen() because it is

yes.  The popen2 module will give you file objects for the
child process stdin, stdout, and stderr.

Grant Edwards                   grante             Yow!  Mr and Mrs PED, can
                                  at               I borrow 26.7

More information about the Python-list mailing list