V13 - Stefanos Harhalakis
|
It is very common to require a proccess listing... I dont believe there is a portable way to do this. (glib seems to try to address this problem but it goes the hard way). Probably the most portable way to get a process list is to parse the output of the `ps' program. libproclist will run ps with the apropriate arguments and parse its output to get the process listing. It seems to work for: Linux, IRIX, Solaris, AIX and OpenBSD. This will *NOT* work for FreeBSD since the ps command does *NOT* return the effective uid and gid of a process. |