Skip to content

Instantly share code, notes, and snippets.

@Klowner
Created October 18, 2013 14:29
Show Gist options
  • Save Klowner/7042415 to your computer and use it in GitHub Desktop.
Save Klowner/7042415 to your computer and use it in GitHub Desktop.
#!/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 mriedesel@gmail.com -cc astirya@gmail.com -from mriedesel@gmail.com -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