On Wed, Oct 18, 2006 at 02:06:34PM -0700, Carl Lowenstein wrote:
> Basic idea is to use some restrictive options on ps(1) so it only
> gives you the PID and the comand with arguments, then select the PID
> column of the pertinent line.  Use this output as input to the kill
> command of your choice.  e.g.
>
> $ kill -HUP $( ps -eo pid,cmd | gawk '/start.py/{print $1; exit}' )

This seems to work...

kill `ps -ef | grep "python2.4 start.py" | grep seb | cut -f 7 --delimiter=" "`

Chris


-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to