Created
June 15, 2016 11:45
-
-
Save glennzw/52bd3d396858ee4b186ed965186a228e to your computer and use it in GitHub Desktop.
Check if site up
This file contains hidden or 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
#!/bin/bash | |
if curl -s http://www.isup.me/$1 | grep -q "It's just you"; then echo $1 is up; else echo $1 is down; fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment