How to script DOS app that doesn't use stdout

Gregor nospam at nospam.nospam.edu
Sun Mar 6 08:41:57 EST 2005


There's a DOS console application I am trying to script (in Python), but it 
doesn't seem to use stdout or stderr... For example, if I redirect output 
to a file ("cmd > file.txt"), the output still appears on screen. 
Similarly, the output pipes returned by popen* don't catch the app's 
output. How might this app be generating its output? Any thoughts on how it 
could be captured (perhaps with something in the win32 extensions)?

Thanks,

Greg.



More information about the Python-list mailing list