Thursday, January 07, 2010

Kill all unix processes with name known

In order to kill the process in Unix withe the name of the process I used the following command, where poller is the name of the process

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

No comments: