Created
September 21, 2011 05:38
-
-
Save LeonBlade/1231335 to your computer and use it in GitHub Desktop.
An easy way to send a terminate kill -15 to any proccess by name
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
#!/bin/bash | |
kill -15 $(ps -ax | grep -i $1 | grep -v exterminate | grep -v grep | perl -n -e '/([0-9]+)/ && print $1') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I move it into a ~/bin/ folder where I have path set up for it and I can just run $ exterminate proccess