Re: Threading and consuming output from processes

2005-02-26 Thread Donn Cave
Quoth Jack Orenstein <[EMAIL PROTECTED]>: [ ... re alternatives to threads ] | Thanks for your replies. The streams that I need to read contain | pickled data. The select call returns files that have available input, | and I can use read(file_descriptor, max) to read some of the input | data. But t

Re: Threading and consuming output from processes

2005-02-26 Thread Jack Orenstein
I asked: I am developing a Python program that submits a command to each node of a cluster and consumes the stdout and stderr from each. I want all the processes to run in parallel, so I start a thread for each node. There could be a lot of output from a node, so I have a thread reading each stream

Re: Threading and consuming output from processes

2005-02-25 Thread Donn Cave
In article <[EMAIL PROTECTED]>, Jack Orenstein <[EMAIL PROTECTED]> wrote: > I am developing a Python program that submits a command to each node > of a cluster and consumes the stdout and stderr from each. I want all > the processes to run in parallel, so I start a thread for each > node. There co

Re: Threading and consuming output from processes

2005-02-24 Thread Simon Wittber
> 1) How should I solve this problem? I'm an experienced Java programmer > but new to Python, so my solution looks very Java-like (hence the use of > the threading module). Any advice on the right way to approach the > problem in Python would be useful. In the past, I have used the select module t

Threading and consuming output from processes

2005-02-24 Thread Jack Orenstein
I am developing a Python program that submits a command to each node of a cluster and consumes the stdout and stderr from each. I want all the processes to run in parallel, so I start a thread for each node. There could be a lot of output from a node, so I have a thread reading each stream, for a t