Created
November 15, 2017 17:42
-
-
Save cocodrino/6e49b24783c93ddc352a463d5e342d8b to your computer and use it in GitHub Desktop.
pagina up o mensaje correo
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
/usr/bin/wget "www.example.com" --timeout 30 -O - 2>/dev/null | grep "Normal operation string" || echo "The site is down" | /usr/bin/mail -v -s "Site is down" your@e-mail.address |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment