Comment 12 for bug 1663697

Revision history for this message
Alvin Penner (apenner) wrote :

yes, in retrospect I probably should not have posted that code, since it interferes with the normal sequence of events. A much less intrusive way of doing the monitoring is to use code like this:

f = p.communicate()
err.close()
fout = open('\Windows\Temp\save_as_err.txt', 'wt')
fout.write("\nstdout = " + f[0])
fout.write("\nstderr = " + f[1] + "\n")
fout.close()

which allows you to see both the normal and the error output.