[lug] OT-C Function that reports process status
Zan Lynx
zlynx at acm.org
Mon Nov 17 16:53:26 MST 2003
On Mon, 2003-11-17 at 10:40, Stephen Queen wrote:
> Does anyone know of a function in C that duplicates the ps in the
> command line under Linux?
> Thanks,
> Steve
There is the libproc library which is part of the procps package. It
has some handy functions (defined in readproc.h). The library is under
the GPL though, so any program linked with it is also GPL, which may be
a problem for you.
The other thing to do is to read /proc yourself. It isn't that
complicated.
--
Zan Lynx <zlynx at acm.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20031117/9ec59cb6/attachment.pgp>
More information about the LUG
mailing list