Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
kill all tomcat processes in Xinx
ps -ef | grep tomcat | awk '{print $2}' | xargs kill -9
Copy link

bloomiboy commented Jul 9, 2014

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