[Tutor] application name of a process

Gianmarco Baronio gbaronio@siosistemi.it
Thu, 02 Nov 2000 17:00:00 +0100


This is a multi-part message in MIME format.
--------------B9288DD40961ACECF2A84B08
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hello everybody,
I'm working with Pythonwin.
I know the PID associated with my process in this way:

>>> import os
>>> PID = os.getpid()

How can I have the name of the application associated with a process if
I know the PID?

Thanks

--------------B9288DD40961ACECF2A84B08
Content-Type: text/x-vcard; charset=us-ascii;
 name="gbaronio.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Gianmarco Baronio
Content-Disposition: attachment;
 filename="gbaronio.vcf"

begin:vcard 
n:Baronio;Gianmarco
tel;fax:+39 030 2209205
tel;work:+39 030 24411
x-mozilla-html:TRUE
org:<CENTER><B><I><FONT FACE="Arial,Helvetica" COLOR="#000000" SIZE="+2">Siosistemi</FONT></I></B><HR WIDTH="30%" NOSHADE SIZE=1><FONT FACE="Times" SIZE="-3">CONNECTING BUSINESS</FONT></CENTER>
version:2.1
email;internet:gbaronio@siosistemi.it
adr;quoted-printable:;;via Cefalonia 58=0D=0A25124 Brescia;Brescia;BS;25124;Italy
fn:Gianmarco Baronio
end:vcard

--------------B9288DD40961ACECF2A84B08--