On Fri, Jan 24, 2003 at 05:22:00AM -0800, Josh Brooks typed:
> 
> Hello,
> 
> Is there any way to tell, simply from /proc info and/or ps output if a
> certain httpd PID is a child or the parent ?

Yes, use "ps xalw | grep httpd". In the third column you see the processes' 
PPID (Parent Proces ID). All except one will have the same PPID. The one
proces with PPID=1 is the parent, the rest are its children.

> If yes, is this method applicable on any OS (linux) ?

AFAIK, on any Unix-like OS. Although the format of the ps output may 
differ.

> 
> thanks.
> 
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-questions" in the body of the message

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to