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
begin:vcard
fn:Shane Geiger
n:Geiger;Shane
org:National Council on Economic Education (NCEE)
adr:Suite 215;;201 N. 8th Street;Lincoln;NE;68508;United States
email;internet:[EMAIL PROTECTED]
title:IT Director
tel;work:402-438-8958
x-mozilla-html:FALSE
url:http://www.ncee.net
version:2.1
end:vcard
--
http://mail.python.org/mailman/listinfo/python-list