Donn Cave wrote:
If you want to use select(), don't use the fileobject
functions. Use os.read() to read data from the pipe's file
descriptor (p.stdout.fileno().) This is how you avoid the
buffering.
Thankyou, this works perfectly. I figured it would be something simple.
Marc
--
I am trying to rewrite a PERL automation which started a monitoring
application on many machines, via RSH, and then multiplexed their
collective outputs to stdout.
In production there are lots of these subprocesses but here is a
simplified example what I have so far (python n00b alert!)
- SNIP