Skip to content

Instantly share code, notes, and snippets.

@roblg
Created June 1, 2011 03:42
Show Gist options
  • Save roblg/1001756 to your computer and use it in GitHub Desktop.
Save roblg/1001756 to your computer and use it in GitHub Desktop.
A script to kill skype when it gets uppity
#!/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