home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.hp
- Path: sparky!uunet!elroy.jpl.nasa.gov!nntp-server.caltech.edu!terry
- From: terry@wag.caltech.edu (Terry R. Coley)
- Subject: UNIX group id of another process (not in pstat())
- Message-ID: <1992Aug26.220356.6996@cco.caltech.edu>
- Sender: news@cco.caltech.edu
- Nntp-Posting-Host: picasso.wag.caltech.edu
- Organization: California Institute of Technology, Pasadena, CA
- Date: Wed, 26 Aug 1992 22:03:56 GMT
- Lines: 16
-
-
- Much useful information about other processes may be obtained through
- pstat() (see <sys/pstat.h>) as discussed previously in this group.
-
- However, I would like to read the group id of another process. On
- Suns and other UNIX variants, one can use the address obtained in the
- p_uarea (or similar) member of the proc structure. Doing a read into
- /dev/kmem at this address usually pulls in the user area which in
- turn lets you dig out the group id. However, on HP-UX I have been
- unsuccessful at locating a uarea for another process. Can anyone
- provide a few lines of sample code that would allow this under HP-UX?
-
- --
- - Terry
- terry@wag.caltech.edu 818-397-2724 818-585-0918 (FAX)
- Terry Coley, Caltech 139-74, Pasadena, CA 91125
-