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 21` 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 ,just

Re: How to unbuffer Python's output

2009-07-14 Thread Chris Rebert
2009/7/13 Lily Gao lily@autodesk.com: Hi, All I am calling a python program in perl and use redirection, Like : `python x.py 1.log 21` 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 

Re: How to unbuffer Python's output

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