Re: piping question

2006-04-18 Thread Biggmatt
Thanks. I would have wasted a good day trying to figure that out. I found a work around. I'll just run the output in a terminal. -- http://mail.python.org/mailman/listinfo/python-list

Re: piping question

2006-04-18 Thread Lawrence D'Oliveiro
In article <[EMAIL PROTECTED]>, Biggmatt <[EMAIL PROTECTED]> wrote: >The problem is that i want it to >get the stdout as the program runs, not hold it all till it's >finished. This has been discussed before. If the program you're trying to control buffers its output and gives no option to disab

Re: piping question

2006-04-17 Thread Steve Bergman
Have you tried running python with '-u'? That turns off most buffering within python at least. I'm not familiar with newspost, so I've no idea what to do about any output buffering it might be doing. -- http://mail.python.org/mailman/listinfo/python-list

piping question

2006-04-17 Thread Biggmatt
I forgot to add that i'm running ubuntu with python 2.4, and the imports are: import os import pygtk pygtk.require('2.0') import gtk import gtk.glade -- http://mail.python.org/mailman/listinfo/python-list

piping question

2006-04-17 Thread Biggmatt
I have been working on a little frontend for newspost. It runs newspost just fine and gets it's output. The problem is that i want it to get the stdout as the program runs, not hold it all till it's finished. I've tried a few variations of popen , and others with no luck. Here is the subroutine th