Re: subprocess module and blocking

2005-06-14 Thread Robin Becker
Dieter Maurer wrote: . > > You just found out that this is not the case. thanks I suppose I was being a moron. > > The warning attached to "communicate"s docstring might have > you averted: "Note: the data read is buffered in memory... > do not use for large size". > > If subprocess would

Re: subprocess module and blocking

2005-06-13 Thread Dieter Maurer
Robin Becker <[EMAIL PROTECTED]> writes on Sun, 12 Jun 2005 09:22:52 +: > I'm using a polling loop in a thread that looks approximately like this > > while 1: > p = find_a_process() > rc = p.poll() > if rc is not None: > out, err = p.communicate() > #deal with

subprocess module and blocking

2005-06-12 Thread Robin Becker
I'm using a polling loop in a thread that looks approximately like this while 1: p = find_a_process() rc = p.poll() if rc is not None: out, err = p.communicate() #deal with output etc sleep(1) the process p is opened using p = Popen(cmd, stdin=PIPE, stdout=P