Running long script in the background

wattersmt at gmail.com wattersmt at gmail.com
Tue Feb 6 10:37:33 EST 2007


On Feb 6, 8:36 am, "jasonmc" <jasonmccandl... at gmail.com> wrote:
> > Does anybody know a way to make output show in real time?
>
> You can put: #!/usr/bin/python -u
> at the top of the script to have unbuffered binary stdout and stderr.


Thanks.  I tried that but it still times out waiting for output.

Everything works fine until I call the popen function, then it
freezes.  What I want is to print the output in real time, just like
it does when I run it from a shell.




More information about the Python-list mailing list