Re: Catching subprocess stdout stream

2008-09-10 Thread Michele Simionato
On Sep 8, 5:37 pm, Thomas Jansson <[EMAIL PROTECTED]> wrote: > Dear all > > I have tkinkter based frontend to a Fortran based program. I use > subprocess to launch the fortran program as a child process and I wish > to see the output of the fortran program as it is created in the > console. > > The

Re: Catching subprocess stdout stream

2008-09-10 Thread Fredrik Lundh
Sean DiZazzo wrote: while aThread.isAlive() or not aQueue.empty(): l = aQueue.get().rstrip() fo.write(l) print l fo.close() A bit of fun for a sleepless night... and unless you add a call to time.sleep somewhere in that loop, you'll keep your CPU up all night as well... -- http

Re: Catching subprocess stdout stream

2008-09-10 Thread Sean DiZazzo
On Sep 8, 8:37 am, Thomas Jansson <[EMAIL PROTECTED]> wrote: > Dear all > > I have tkinkter based frontend to a Fortran based program. I use > subprocess to launch the fortran program as a child process and I wish > to see the output of the fortran program as it is created in the > console. > > The