home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!monu6!yoyo.cc.monash.edu.au!parry
- From: parry@yoyo.cc.monash.edu.au (Tom J Parry)
- Subject: Re: ps that uses /proc
- Message-ID: <1992Dec14.082323.28955@monu6.cc.monash.edu.au>
- Originator: parry@yoyo.cc.monash.edu.au
- Sender: news@monu6.cc.monash.edu.au (Usenet system)
- Organization: Monash University, Melb., Australia.
- References: <1992Dec14.032831.9921@u.washington.edu>
- Date: Mon, 14 Dec 1992 08:23:23 GMT
- Lines: 19
-
- 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.
-