Created
July 3, 2014 19:11
-
-
Save nrshrivatsan/1d2ea4fcdcb9d1857076 to your computer and use it in GitHub Desktop.
kill all tomcat processes in Xinx
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
ps -ef | grep tomcat | awk '{print $2}' | xargs kill -9 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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