Created
June 1, 2011 03:42
-
-
Save roblg/1001756 to your computer and use it in GitHub Desktop.
A script to kill skype when it gets uppity
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 | |
# kill (with extreme prejudice) | |
# ps -C skype,skype-wrapper -o pid= ==> displays only the PIDs of processes matching skype,skype-wrapper | |
# run it through sed, which removes the leading spaces, then does a multiline match, removing the newlines | |
kill -9 `ps -C skype,skype-wrapper -o pid= | sed -e 's/ //g' -e '/$/ { N; s/\n/ /; }'` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment