Tuesday, February 21, 2012

Kill many processes

I want to kill all of my processes with the name resque in them. Here is a command that will do that for me.

kill -9 `ps -ef | grep resque | grep -v grep | awk '{print $2}'`