7

Shell script to -9 kill based on name

view full story
linux-howto

http://askubuntu.com – Is there a way (perhaps a script) how to automate this process: petr@sova:~$ ps -ef | grep middleman petr 18445 2312 1 12:06 pts/2 00:00:01 /home/petr/.rvm/gems/ruby-1.9.3-p362/bin/middleman petr 18581 13621 0 12:08 pts/0 00:00:00 grep --color=auto middleman petr@sova:~$ kill -9 18445 Unforutanetly, pkill is too weak as I have to go with -9 option on kill. (HowTos)