Re: Monitoring the output of an external program

2007-12-13 Thread Calvin Spealman
I always recommend the subprocess module for any needs like this. Read up on it and it should provide everything you need. On Dec 13, 2007, at 2:41 AM, Caleb Marcus wrote: > I'm writing something that has to invoke an external program, and > every time the external program prints something, u

Re: Monitoring the output of an external program

2007-12-13 Thread Vladimir Rusinov
On 12/13/07, Caleb Marcus <[EMAIL PROTECTED]> wrote: > > I'm writing something that has to invoke an external program, and every > time the external program prints something, update a UI. How would I go > about doing this? > Use sys.popen or pexpect module. With pexpect you can even use single th