Skip to content

Instantly share code, notes, and snippets.

@ruskotron
Created February 22, 2012 16:58
Show Gist options
  • Save ruskotron/1886015 to your computer and use it in GitHub Desktop.
Save ruskotron/1886015 to your computer and use it in GitHub Desktop.
Skype Watchdog
while sleep 1; do top -b | awk '$12 != "skype" {next} {print} $9 < 90 {n=0;next} {n+=1} n > 10 {exit}' ; pkill -9 "^skype$" ; skype & done
@ruskotron
Copy link
Author

updated so /only/ skype is pkilled (not any other ps with 'skype' in the name e.g. this script!)

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