-
-
Save DevGW/1fd6f9a4f83d88a7548b1950e1361c80 to your computer and use it in GitHub Desktop.
Grep for and kill multiple processes with #awk #hha_ank
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# kill errant resque workers processing billing files | |
ps xau |grep resque | grep -i billing | awk '{system("kill -9 $2")}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment