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 my-deja.com <lamzak8642 at my-deja.com> 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
>unidirectional.
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
visi.com
More information about the Python-list
mailing list