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 <[EMAIL PROTECTED]> 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
>
>            [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>

--
Shane Geiger
IT Director
National Council on Economic Education
[EMAIL PROTECTED]  |  402-438-8958  |  http://www.ncee.net

Leading the Campaign for Economic and Financial Literacy





--
li xianmin

          [EMAIL PROTECTED]
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to