From: parry@yoyo.cc.monash.edu.au (Tom J Parry) Subject: Re: ps that uses /proc Date: Mon, 14 Dec 1992 08:23:23 GMT
David Barr (barr@stein.u.washington.edu) wrote:
>Has anyone written a version of ps that uses the proc file system? I
>couldn't get my old version of ps to work with linux 0.99, so I wrote
>my own ps program.
You need to recompile ps and friends for 0.99. Before I did this ps showed
a total of 0 processes (but didn't give an error). Lack of recompilation
of ps and friends probably explains their sick state with 0.98 pl6.
Just quickly, for those who don't know. You need to recompile ps since some
of the stuctures in the kernel have changed, hence ps uses the wrong offsets
when trying to find out things...
[Code that shows how easy it would be but which doesn't handle lots of things
(like more than a couple of pty's) deleted].
-- Tom J Parry. Your reality is a figment of my imagination.