enumerating processes

李现民 lixianmin at gmail.com
Tue Mar 27 02:07:14 EDT 2007


thanks for your help, but that is not what I am looking for. My question is:
I need to determine whether another process is running now ---in my problem,
that is 'tomcat5.exe' ---that determines what should I do next.

thanks !



On 3/27/07, Shane Geiger <sgeiger at ncee.net> wrote:
>
> I believe you are looking for os.getpid()
>
>
> 李现民 wrote:
> > hi ,all
> >    any one knows how to enumerate the current running processes , or
> > how to obtain a specific process by its name or process id. I know I
> > can do this in many  programming languages , but how in python? any
> > one know?
> >  Thanks for any guidance.
> >
> > --
> > li xianmin
> >
> >            lixianmin at gmail.com <mailto:lixianmin at gmail.com>
>
> --
> Shane Geiger
> IT Director
> National Council on Economic Education
> sgeiger at ncee.net  |  402-438-8958  |  http://www.ncee.net
>
> Leading the Campaign for Economic and Financial Literacy
>
>
>


-- 
li xianmin

           lixianmin at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070327/6af21da0/attachment.html>


More information about the Python-list mailing list