Path: utzoo!attcan!uunet!pdn!reggie From: reggie@pdn.UUCP (George W. Leach) Newsgroups: comp.unix.questions Subject: Re: proc table in /dev/kmem Message-ID: <4920@pdn.UUCP> Date: 11 Nov 88 15:01:38 GMT References: <1865@loral.UUCP> <4161@encore.UUCP> Reply-To: reggie@pdn.UUCP (George W. Leach) Organization: Paradyne Corporation, Largo FL Lines: 23 In article <4161@encore.UUCP> bzs@encore.com (Barry Shein) writes: >>I have a situation where given a process id, I need to find the child(ren) >>of that pid. >Why are you so shy about groveling a ps listing? You don't have to use >awk if you're worried about all the overhead/memory, you can use >popen() and just get it yourself with a little string manipulation. >Do it like the pros, cheat! Thats right! We all do this. In fact, take a look at "The UNIX Programming Environment", Brian Kernighan and Rob Pike, Prentice-Hall, on pages 190-192 at the zap program. Copy and modify it to to your needs. -- George W. Leach Paradyne Corporation ..!uunet!pdn!reggie Mail stop LF-207 Phone: (813) 530-2376 P.O. Box 2826 Largo, FL USA 34649-2826