Skip to content

Instantly share code, notes, and snippets.

@LeonBlade
Created September 21, 2011 05:38
Show Gist options
  • Save LeonBlade/1231335 to your computer and use it in GitHub Desktop.
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
#!/bin/bash
kill -15 $(ps -ax | grep -i $1 | grep -v exterminate | grep -v grep | perl -n -e '/([0-9]+)/ && print $1')
@LeonBlade
Copy link
Author

I move it into a ~/bin/ folder where I have path set up for it and I can just run $ exterminate proccess

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