Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Created By: Metalx1000
- # This script uses df and AWK to give you a popup every hour to inform you of how much disk space is used.
- # Be sure to change the "drive" to the drive you want to monitor.
- drive="sdg1"
- while [ 1 ];
- do
- clear
- message=`df -h|grep $drive|awk '{print "Drive " $1 " is " $5 " used"}'`
- echo "$message"
- notify-send "$message"
- sleep 1h
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement