Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Terminate processes/programs by their name, not their pid!
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README
pkill.py

README

PKILL

by Colin Woodbury <colingw AT gmail>

ABOUT PKILL
-----------
Don't feel like fiddling around with grep and kill to stop that runaway
process that isn't acting the way it should?
With pkill, you can kill it by name!

pkill iTunes   # Bye bye iTunes!
pkill Firefox  # Bye bye Firefox!

Need more power? Force the kill!

pkill -9 Firefox  # Someone was being a bad boy.

pkill accepts all the numbered signals that the native 'kill'
command does. 

REQUIREMENTS
------------
pkill is a python script that is compatible from 2.6 upwards through 3.2.
To run it, you'll need to be using Linux, OSX, or Cygwin in Windows.

cygwin: http://cygwin.com/

INSTALLING PKILL
----------------
Download the source, and place it whereever you like.
Then, in either your .bash_profile (mac) or .bashrc (Linux),
add something like:

alias pkill="python ~/path/to/pkill/pkill.py"

Save, and close the Terminal window, and open a new one. You're ready
to use pkill!

RUNNING PKILL
-------------
No matter where you are in your shell, just type:

pkill (optional-term-signal) name-of-naughty-process

and all will be taken care of!
Something went wrong with that request. Please try again.