Re: polling for output from a subprocess module

2008-02-04 Thread jakub . hrozek
On 4 Ún, 11:49, Thomas Bellman <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > try: > > test = Popen(test_path, > > stdout=PIPE, > > stderr=PIPE, > > close_fds=True, > >

polling for output from a subprocess module

2008-02-04 Thread jakub . hrozek
Hello, My program uses the subprocess module to spawn a child and capture its output. What I'd like to achieve is that stdout is parsed after the subprocess finishes, but anything that goes to stderr is printed immediately. The code currently looks like: try: test = Popen(test_pa