Monitoring external processes
arunasunil at gmail.com
arunasunil at gmail.com
Tue Oct 23 09:29:20 EDT 2007
On Oct 22, 11:33 pm, Graham Dumpleton <Graham.Dumple... at gmail.com>
wrote:
> On Oct 23, 3:09 pm, arunasu... at gmail.com wrote:
>
> > Hi,
>
> > Is there a way to track external processes launched by python on the
> > Mac? I am using subprocess module to launch the process.
>
> > Thanks
> > Sunil
>
> If using Python 2.3/2.4, you can use os.wait().
>
> If using Python 2.5, there is also have os.wait3() and os.wait4().
>
> See the operating system manual pages for the difference. Ie.,
>
> man wait4
>
> Graham
Ah! Exactly what I needed.
Thanks
Sunil.
More information about the Python-list
mailing list