saving the text on python dos window.

sarmin kho sarmin_kho at yahoo.com
Thu Jun 24 05:02:52 EDT 2004


Hi Pythoners..
 
"print (text)' command will print the 'text' on dos window when executing a python script. i would like to save all the text printed on the dos window to a file at the end of the python script execution..
 
sys.stdout.GetLine() gave me an empty string..
where is the handle to the printed text, please? 
 
i m also using scripts written by someone else so some printed texts are not mine but i would like to keep all the printed text for debugging.. the printed texts contain not only error messages but also all other texts i wish to keep.
 
many thanks chaps..
 
sarmin

		
---------------------------------
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20040624/3b9b0805/attachment.html>


More information about the Python-list mailing list