kill-by-name


[Home] [Dissertação] [Biba] [Linux] [Conjugue] [br.ispell] [axw3] [uplink]

#!/bin/sh
#
# kill-by-name (kbn), by Ricardo Ueda
# usage: kbn program_name
#
ps ax |
awk -v pname=$1 ' { if ($5 == pname) { print $1 } } ' |
xargs kill -9