enumerating processes

Shane Geiger sgeiger at ncee.net
Tue Mar 27 01:15:28 EDT 2007


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: sgeiger.vcf
Type: text/x-vcard
Size: 310 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20070327/81678654/attachment.vcf>


More information about the Python-list mailing list