Skip to content

Instantly share code, notes, and snippets.

@dnault
Created February 17, 2015 07:27
Show Gist options
  • Save dnault/425c144cc6a2ac4b3ef9 to your computer and use it in GitHub Desktop.
Save dnault/425c144cc6a2ac4b3ef9 to your computer and use it in GitHub Desktop.
Bash function for killing stubborn a stubborn Tomcat process
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