-
-
Save shaunmolloy/82b4b494d5cfc765b1048130cb2d30b0 to your computer and use it in GitHub Desktop.
isup - check if websites (args passed) are up
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/env bash | |
# check if websites (args passed) are up | |
for site in $@ | |
do | |
echo | |
echo $site | |
curl -I -s $site | head -n 1 | grep -q "404" && echo down || echo up | |
echo | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment