sys.stdout linebuffered
Peter Hansen
peter at engcorp.com
Wed May 26 09:40:01 EDT 2004
Thomas Guettler wrote:
> I start a long running script like this (unix):
>
> nohup foo.py > foo.log &
[snip]
> The "-u" switch is not an option.
That statement is suspect, and like Benjamin I wonder whether
it really is true. Nevertheless, in the unlikely case that you
absolutely cannot use the -u switch, look at the description of
that option in the output of "python -h" and use the environment
variable mentioned there instead.
-Peter
More information about the Python-list
mailing list