Skip to content

Instantly share code, notes, and snippets.

@compuguy
Created March 2, 2017 21:31
Show Gist options
  • Save compuguy/352fb1d99ecf0bd137b6ac72f383a607 to your computer and use it in GitHub Desktop.
Save compuguy/352fb1d99ecf0bd137b6ac72f383a607 to your computer and use it in GitHub Desktop.
Cron job for CloudAtCost
*/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