winnt win32process.createProcess with stdout to file ?
david.humpherys at gmail.com
david.humpherys at gmail.com
Fri Mar 4 12:18:03 EST 2005
Aweseome! Many many thanks Roger ! You've made my day.
The last thing that you may be able to help with...
I'm using
win32api.TerminateProcess(hProcess,3)
to kill this process if it gets outta hand...
but when i do so.. it seems that the stdout/stderr don't capture the
output.
here's my last chunk of code.
again.. thank you so much.
hProcess, hThread, dwProcessId, dwThreadId =
win32process.CreateProcess \
( None, self.RENDER_STRING, sa, sa, 1,
win32con.NORMAL_PRIORITY_CLASS, None, None, startInfo)
while self.exitCode == 259:
if self.stop:
print "kill da process"
win32api.TerminateProcess(hProcess,3)
self.exitCode = win32process.GetExitCodeProcess(hProcess)
time.sleep(2)
More information about the Python-list
mailing list