Python script monitoring another process
Grant Edwards
grant at nowhere.
Thu Jan 27 13:52:35 EST 2000
In article <389089E8.32BB7710 at cs.brandeis.edu>, Magnus Bjornsson wrote:
>I'm new to Python so this is probably a typical newbie question...
>Anyway, I'm trying to build a Python script which does the following:
> 1. starts a process (that's easy)
> 2. checks the output from the process (from its stdout)
> 3. when a certain token is found in the process' output the script
> sends a new token to the process' stdin
The popen2 module lets you do this.
--
Grant Edwards grante Yow! Edwin Meese made me
at wear CORDOVANS!!
visi.com
More information about the Python-list
mailing list