Created
March 2, 2017 21:31
-
-
Save compuguy/352fb1d99ecf0bd137b6ac72f383a607 to your computer and use it in GitHub Desktop.
Cron job for CloudAtCost
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
*/5 * * * * IFS=$'\n' ; for i in `grep "\sro[\s,]" /proc/mounts` ; do echo "read-only filesystem detected: $i" > /dev/kmsg ; echo "" | mail -s "read-only filesystem detected: $i" -r from@yourserver toyouremail@gmail.xyz ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment