Skip to content

Instantly share code, notes, and snippets.

@augbog
Created June 8, 2017 19:12
Show Gist options
  • Save augbog/28bbe8a35fd72b55748b56f150f6a1f7 to your computer and use it in GitHub Desktop.
Save augbog/28bbe8a35fd72b55748b56f150f6a1f7 to your computer and use it in GitHub Desktop.
PAX Website Checker
#!/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