Created
February 17, 2015 07:27
-
-
Save dnault/425c144cc6a2ac4b3ef9 to your computer and use it in GitHub Desktop.
Bash function for killing stubborn a stubborn Tomcat process
This file contains hidden or 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
function kill-tomcat { | |
ps xu | grep tomcat | grep -v grep | awk '{ print $2 }' | xargs kill -9 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment