Tuesday, January 17, 2012

Find a process and kill it in a script in Linux

ps -ef | grep process_name | awk '{ print $2; }'| xargs kill -9