Created
January 27, 2013 15:51
-
-
Save thumphries/4648939 to your computer and use it in GitHub Desktop.
cocoa kill - useful for killing Mac OS X GUI applications. (Use with care!)
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/sh | |
if [ -z $1 ]; then echo "$0: Please supply a label"; exit 1; fi | |
launchctl list | grep -i "$1" | cut -f1 | grep -ve "^-" | xargs kill |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment