Mailing List Archive

Waiting for an external process
Is there a better way to determine when an external process has finished
than using
win32process.CreateProcess / GetExitCodeProcess ?
Waiting for an external process [ In reply to ]
From: "Juan M. Gonzalez" <jugonzal@globalserve.net>

Is there a better way to determine when an external process has finished
than using
win32process.CreateProcess / GetExitCodeProcess ?
Waiting for an external process [ In reply to ]
Juan M. Gonzalez wrote in message <377D9E05.E4F91D2F@globalserve.net>...
>Is there a better way to determine when an external process has finished
>than using
>win32process.CreateProcess / GetExitCodeProcess ?

Depends what you mean by "better". Using win32process, it is possible to
have an event set when the process terminates, which can avoid polling. Im
not sure if this meets your definition of "better" tho - certainly not
"simpler".

Mark.
Waiting for an external process [ In reply to ]
From: "Mark Hammond" <MHammond@skippinet.com.au>

Juan M. Gonzalez wrote in message <377D9E05.E4F91D2F@globalserve.net>...
>Is there a better way to determine when an external process has finished
>than using
>win32process.CreateProcess / GetExitCodeProcess ?

Depends what you mean by "better". Using win32process, it is possible to
have an event set when the process terminates, which can avoid polling. Im
not sure if this meets your definition of "better" tho - certainly not
"simpler".

Mark.