"John Chandler" <[EMAIL PROTECTED]> wrote

> working fine, but the process I am starting starts several other 
> processes.
> Is there any way (using subprocess or a different module) to control 
> the
> processes the original creates (by control I mean feed them input, 
> capture
> output, and kill them).

Its tricky but if you know their names and they are only produced
from your master you could use 'ps' and 'grep' to get the pids.
You can then attach to the pids. But its very messy. It is probably
more reliable to replace your top level process with Python code,
but that depends on how complex that code is...

Thee may be other ways to get the pids using lower level proc
type calls but you still have the problem of identifying which pids
you are interested in!

All I can think of at this time of night!

Alan G. 


_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to