Created
June 8, 2017 19:12
-
-
Save augbog/28bbe8a35fd72b55748b56f150f6a1f7 to your computer and use it in GitHub Desktop.
PAX Website Checker
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
#!/bin/bash | |
echo 'Running Pax Tickets script...' | |
while [ 1 ]; | |
do | |
count=`curl -H 'Cache-Control: no-cache' -s "http://west.paxsite.com/registration?$[ (RANDOM % 18747214) + 1 ]" | grep -c "showclix.com"` | |
echo "http://west.paxsite.com/registration?$[ (RANDOM % 18747214) + 1 ]" | |
if [ "$count" != "0" ] | |
then | |
echo "West PAX Site updated!" | |
osascript -e 'display notification "PAX tickets updated!" with title "PAX Tickets"' | |
fi | |
sleep $[ (RANDOM % 2) + 1 ] | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment