sys.stdout linebuffered
Thomas Guettler
guettli at thomas-guettler.de
Wed May 26 08:13:03 EDT 2004
Hi,
I start a long running script like this (unix):
nohup foo.py > foo.log &
Now Python thinks sys.stdout should not be
line buffered. How can I force linebuffering?
I want to see the log file while the script is
still running.
I don't like this solution (Wrapping sys.stdout
with an own class)
http://groups.google.de/groups?hl=de&lr=&ie=UTF-8&selm=u4rz0icqq.fsf%40ctwd0143.fitlinxx.com
The "-u" switch is not an option.
Thomas
More information about the Python-list
mailing list