Thursday, February 25, 2010

Script for killing all processes matching a search string!

ps -e -o ":%p:%a" | grep | cut -d":" -f2|while read p
do
echo processes $p
kill -9 $p
done

No comments:

Post a Comment