Created
October 18, 2013 14:29
-
-
Save Klowner/7042415 to your computer and use it in GitHub Desktop.
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 | |
echo "Starting" | |
while [[ $(curl --user-agent "klowner" -s https://play.google.com/store/devices | grep -o "\(Nexus\ 5\)") == '' ]]; do | |
NOW=$(date) | |
echo "Waiting $NOW" | |
sleep 60 | |
done | |
mailsend -to [email protected] -cc [email protected] -from [email protected] -ssl -smtp smtp.gmail.com -port 465 -sub "Nexus 5 ALERT HIGH PRIORITY" \ | |
-M "Nexus 5 Detected https://play.google.com/store/devices/ " \ | |
-auth-plain -user "mriedesel" \ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment