Skip to content

Instantly share code, notes, and snippets.

@nrshrivatsan
Created July 3, 2014 19:11
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save nrshrivatsan/1d2ea4fcdcb9d1857076 to your computer and use it in GitHub Desktop.
Save nrshrivatsan/1d2ea4fcdcb9d1857076 to your computer and use it in GitHub Desktop.
kill all tomcat processes in Xinx
ps -ef | grep tomcat | awk '{print $2}' | xargs kill -9
@bloomiboy
Copy link

Why don't you just make it kill_all_process and change the script to:
ps -ef | grep $process_name | awk '{print $2}' | xargs kill -9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment