Last active
December 15, 2015 06:28
-
-
Save robmiller/5216042 to your computer and use it in GitHub Desktop.
ZSH one-liner to poll every five seconds to see whether a site is updated. Replace "example.com" with your domain, obviously. Relies on your site sending sensible "Age" headers.
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
while true; do [[ `curl -ILs http://example.com/ | grep 'Age:' | sed 's/Age: //'` < 10 ]] && say "It updated"; sleep 5; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment