os.system() or os.execv() w/stdout redirect and PID tracking

Rob Hooft R.Hooft at EuroMail.com
Fri May 7 05:13:08 EDT 1999


There are two other modules that can help here:

  - subproc.py (available from ftp.python.org)

  - task.py (available from http://starship.python.net/crew/hooft/ )

Subproc is a way to control a sub-process including its I/O streams
(i.e. you can send commands to its input, and read its output)

Task is a way to run an independent sub-process, being able to wait
for it and/or to kill it on the fly (it can redirect stdin/out as
well).

Rob.
-- 
=====   R.Hooft at EuroMail.net   http://www.xs4all.nl/~hooft/rob/  =====
=====   R&D, Nonius BV, Delft  http://www.nonius.nl/             =====
===== PGPid 0xFA19277D ========================== Use Linux! =========




More information about the Python-list mailing list