Process Information by PID
Wojtek Walczak
gminick at hacker.pl
Tue Oct 21 03:33:33 EDT 2003
Dnia Thu, 16 Oct 2003 14:32:23 +0200, Thomas Guettler napisaĆ(a):
> I want to get some information about
> a process.
>
> I know its PID, and I need
> to know the commandline.
>
> I need something like:
>> ps -p $THISPID
>
> System: Linux, Python2.2
Well, for my needs I wrote procpy:
<http://www.underground.org.pl:81/gminick/tools/procpy.tar.gz>
It's a C module for python using libproc library. The install.sh script
does the work for you. Here's a little readme:
<http://www.underground.org.pl:81/gminick/pliki/README-procpy.txt>
ps. in Linux ps, w, top and so on are using libproc as well
--
[ Wojtek Walczak - gminick (at) underground.org.pl ]
[ <http://gminick.linuxsecurity.pl/> ]
[ "...rozmaite zwroty, matowe od patyny dawnosci." ]
More information about the Python-list
mailing list