Created
December 4, 2014 04:09
-
-
Save nmische/7317403212356b174f8a to your computer and use it in GitHub Desktop.
nc test for failure
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
nc -v -z -w 3 google.com 80 &> /dev/null && echo "Online" || echo "Offline" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment