I believe you are looking for os.getpid()
I apologize for providing that bit of incorrect info.
It looks to me as if Python 1.5 had os.process which might have done
what you wanted (although perhaps not in an OS-independent way). I
wonder why there isn't an OS-independent way to do that in
On Mar 27, 12:15 am, 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 ma
On Mar 27, 2007, at 1:07 AM, 李现民 wrote:
> 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.
Maybe this can help:
htt
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
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 an
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]
--
ht