running a dos program and catching the output
guy at NOSPAM.r-e-d.co.nz
Sun Nov 30 08:41:13 CET 2003
This works and correctly outputs the file out2.dwf
test = os.popen("rewrite.exe test.dwf out2.dwf /a")
for L in test.readlines():
this prints the statistics from the translation.
The things is I want to capture the output file for further processing.
I tried this:
infile = 'test.dwf'
outfile = 'out3.dwf'
And it doesn't work, what am I doing wrong? The dos box disappears too
qucikly to see what the error is and ideally I don't want to see a dos
More information about the Python-list