Created
May 7, 2015 22:50
-
-
Save shigemk2/1474a3e6fae96c8be1cf to your computer and use it in GitHub Desktop.
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/bash | |
DVAL=`/usr/bin/df / | /usr/bin/tail -1 | /bin/sed 's/^.* \([0-9]*\)%.*$/\1/'` | |
if [ $DVAL -gt 60 ]; then | |
/usr/bin/notify-send -u critical "ディスク容量の空きがやばいです: ただいま$DVAL%です" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment