pierre wrote:
No. It might find a child but it will never find the parent.
[root@BSDHelmut ~]# pgrep -fl httpd
81972 /usr/local/sbin/httpd
81960 /usr/local/sbin/httpd
1115 /usr/local/sbin/httpd
1114 /usr/local/sbin/httpd
1111 /usr/local/sbin/httpd
1109 /usr/local/sbin/httpd
1108 /usr/local/sbin/httpd
979 /usr/local/sbin/httpd
[root@BSDHelmut ~]#
To stop httpd, which pid should I kill, the oldest, or the most recent?
OK, 'pgrep -fl httpd | tail -1' does the trick, and pgrep is not safe enough
for finding parents, but...
--
No Swen today, my love has gone away
My mailbox stands for lorn, a symbol of the dawn
| Greg Kroah-Hartman | [PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO |
| Linus Torvalds | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Andrew Morton | 2.6.25-mm1 |
| Vladislav Bolkhovitin | Re: Integration of SCST in the mainstream Linux kernel |
git: | |
| David Miller | [GIT]: Networking |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 0/37] dccp: Feature negotiation - last call for comments |
| Natalie Protasevich | [BUG] New Kernel Bugs |
