Re: Non-blocking pipes during subprocess handling

2007-01-09 Thread Donn Cave
In article <[EMAIL PROTECTED]>, Tom Plunket <[EMAIL PROTECTED]> wrote: > I'm using subprocess to launch, well, sub-processes, but now I'm > stumbling due to blocking I/O. > > Is there a way for me to know that there's data on a pipe, and possibly > how much data is there so I can get it? Curren

Re: Non-blocking pipes during subprocess handling

2007-01-09 Thread Nick Craig-Wood
Tom Plunket <[EMAIL PROTECTED]> wrote: > I'm using subprocess to launch, well, sub-processes, but now I'm > stumbling due to blocking I/O. > > Is there a way for me to know that there's data on a pipe, and possibly > how much data is there so I can get it? You might want to check out this mod

Re: Non-blocking pipes during subprocess handling

2007-01-08 Thread Gabriel Genellina
At Monday 8/1/2007 22:09, Tom Plunket wrote: I'm using subprocess to launch, well, sub-processes, but now I'm stumbling due to blocking I/O. Is there a way for me to know that there's data on a pipe, and possibly how much data is there so I can get it? Currently I'm doing this: Using a threa

Non-blocking pipes during subprocess handling

2007-01-08 Thread Tom Plunket
I'm using subprocess to launch, well, sub-processes, but now I'm stumbling due to blocking I/O. Is there a way for me to know that there's data on a pipe, and possibly how much data is there so I can get it? Currently I'm doing this: process = subprocess.Popen( args,