pierre wrote:
Not at all. I might find a child but I 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 KH | [GIT PATCH] driver core patches against 2.6.24 |
| david | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Rob Landley | What still uses the block layer? |
git: | |
| Antonio Almeida | HTB accuracy for high speed |
| Alexey Dobriyan | Re: [GIT]: Networking |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
