home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / linux / 20303 < prev    next >
Encoding:
Text File  |  1992-12-14  |  1.3 KB  |  32 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!munnari.oz.au!bruce.cs.monash.edu.au!monu6!yoyo.cc.monash.edu.au!parry
  3. From: parry@yoyo.cc.monash.edu.au (Tom J Parry)
  4. Subject: Re: ps that uses /proc
  5. Message-ID: <1992Dec14.082323.28955@monu6.cc.monash.edu.au>
  6. Originator: parry@yoyo.cc.monash.edu.au
  7. Sender: news@monu6.cc.monash.edu.au (Usenet system)
  8. Organization: Monash University, Melb., Australia.
  9. References: <1992Dec14.032831.9921@u.washington.edu>
  10. Date: Mon, 14 Dec 1992 08:23:23 GMT
  11. Lines: 19
  12.  
  13. David Barr (barr@stein.u.washington.edu) wrote:
  14. >Has anyone written a version of ps that uses the proc file system?  I
  15. >couldn't get my old version of ps to work with linux 0.99, so I wrote
  16. >my own ps program. 
  17.  
  18. You need to recompile ps and friends for 0.99. Before I did this ps showed
  19. a total of 0 processes (but didn't give an error). Lack of recompilation
  20. of ps and friends probably explains their sick state with 0.98 pl6.
  21.  
  22. Just quickly, for those who don't know. You need to recompile ps since some
  23. of the stuctures in the kernel have changed, hence ps uses the wrong offsets
  24. when trying to find out things...
  25.  
  26. [Code that shows how easy it would be but which doesn't handle lots of things
  27.  (like more than a couple of pty's) deleted].
  28.  
  29. -- 
  30. Tom J Parry.
  31. Your reality is a figment of my imagination.
  32.