John Burke wrote:
>
> I forgot to follow through on the example below. So here it is. My take is
> that if I want to kill the apache job from the shell, I want to kill the PID
> 6029390, which is not the smallest, btw.
As John points out, the smallest PID is not necessarily the correct PID to
kill.
If you really wanted to kill based on ps output alone, I'd do a ps -ef so you
can also see the parent PID, and then kill the process whose parent is
CI.PUB.SYS or SH.HPBIN.SYS. I leave it as an exercise for the reader to
determine the parent/child relationships by doing something clever like
processing the ps output with either awk, perl, or even boring old join.
--
[log in to unmask]
Remainder of .sig suppressed to conserve scarce California electrons...