Created
January 15, 2020 11:14
-
-
Save ptigas/15aeb555a4bfb65d9b192175bbc411ff to your computer and use it in GitHub Desktop.
bt wake script
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
string=$(curl -Is http://ptigas.com | head -1) | |
if [[ $string == *"OK"* ]]; then | |
echo "IPv4 is up" | |
else | |
echo "IPv4 is down" | |
curl 'https://www.btopenzone.com:8443/tbbLogon' -d "username=<username>&password=<password>" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment