home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / programm / 5270 < prev    next >
Encoding:
Internet Message Format  |  1992-11-13  |  930 b 

  1. Path: sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!spool.mu.edu!agate!doc.ic.ac.uk!uknet!glasgow!unix.brighton.ac.uk!jmd6
  2. From: jmd6@unix.brighton.ac.uk (Durrant;f110or89;[05306)
  3. Newsgroups: comp.unix.programmer
  4. Subject: PS type info from C question?
  5. Message-ID: <1992Nov13.110502.1662@unix.brighton.ac.uk>
  6. Date: 13 Nov 92 11:05:02 GMT
  7. Organization: University of Brighton, UK
  8. Lines: 17
  9.  
  10.  
  11. I using sunos 4.1.2.3 and I'm after getting access to
  12. the process information for a running process. By info
  13. I mean processor time used, command running, mem in use, etc.
  14. The sort of thing that ps returns. I think it should be 
  15. possible through ptrace but this only terminates the process
  16. I attach to.
  17.  
  18. On Unix SVR4 I could do this by doing an ioctrl on a process file
  19. in the proc virtual file system. But under sunos such nicetys are
  20. absent.
  21.  
  22. Please mail me any sujestions.
  23.  
  24. Thanks
  25.  
  26. Jon Durrant (jmd6@uk.ac.bton.unix) JANET address
  27.