Created
November 28, 2011 09:22
-
-
Save riaf/1399744 to your computer and use it in GitHub Desktop.
Growl が暴走したら再起動してほしくて ref: http://qiita.com/items/1158
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 | |
CPU_USAGE=`ps aux | grep Growl.app | sed -e 's/ */ /g' -e 's/ /=/g' -e ' 2d' | cut -d '=' -f 3 | cut -d '.' -f 1` | |
if [ $CPU_USAGE -gt 20 ]; then | |
killall Growl | |
open /Applications/Growl.app | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment