Re: How to unbuffer Python's output

2009-07-14 Thread David Stanek
2009/7/14 Lily Gao : > Hi, All > > I am calling a python program in perl and use redirection, > > Like : > > `python x.py > 1.log 2>&1` Try tihs instead: python x.py 2>&1 > 1.log -- David blog: http://www.traceback.org twitter: http://twitter.com/dstanek -- http://mail.python.org/mailman/li

Re: How to unbuffer Python's output

2009-07-14 Thread Chris Rebert
2009/7/13 Lily Gao : > Hi, All > > I am calling a python program in perl and use redirection, > > Like : > > `python x.py > 1.log 2>&1` > > When x.py crash, I get nothing from 1.log, and if I don’t use redirection, I > can get useful log from the screen. > > How can I do to make x.py ‘s  output un-

How to unbuffer Python's output

2009-07-14 Thread Lily Gao
Hi, All I am calling a python program in perl and use redirection, Like : `python x.py > 1.log 2>&1` When x.py crash, I get nothing from 1.log, and if I don’t use redirection, I can get useful log from the screen. How can I do to make x.py ‘s output un-buffered when redirection log to files ,jus