process id from os.system
j vickroy
jvickroy at sec.noaa.gov
Fri Jul 21 09:44:01 EDT 2000
Thanks Mark. I will try this for the Win32 branch of the code.
Mark Hammond wrote:
> "j vickroy" <jvickroy at sec.noaa.gov> wrote in message
> news:3977482B.478D2754 at sec.noaa.gov...
> > How can I obtain the process id for a program launched via
> >
> > os.system (theProgram) ?
> >
> > I would like to do this portability (Unix, Windows).
>
> AFAIK, there is no portable solution. Using win32process.CreateProcess()
> under Windows will return the PID (along with the process handle, which
> can be used to wait for the process to terminate)
>
> Mark.
More information about the Python-list
mailing list