proc table in /dev/kmem
George W. Leach
reggie at pdn.UUCP
Sat Nov 12 01:01:38 AEST 1988
In article <4161 at encore.UUCP> bzs at 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
More information about the Comp.unix.questions
mailing list