winnt win32process.createProcess with stdout to file ?
rupole at hotmail.com
Fri Mar 4 22:22:21 CET 2005
TerminateProcess doesn't give it a chance to exit normally
and do any cleanup that would happen if it exited itself.
It may not have been able to flush its file buffers, etc.
Does the executable have any way to signal it to exit ?
<david.humpherys at gmail.com> wrote in message
news:1109956683.854381.73600 at l41g2000cwc.googlegroups.com...
> Aweseome! Many many thanks Roger ! You've made my day.
> The last thing that you may be able to help with...
> I'm using
> to kill this process if it gets outta hand...
> but when i do so.. it seems that the stdout/stderr don't capture the
> 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"
> self.exitCode = win32process.GetExitCodeProcess(hProcess)
----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= East/West-Coast Server Farms - Total Privacy via Encryption =---
More information about the Python-list