Created
January 19, 2015 17:02
-
-
Save pale2hall/2ce817a15eb6727a076b to your computer and use it in GitHub Desktop.
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 | |
# Check Amazon Lowest Price | |
while true | |
do | |
leCount=$( curl -s http://www.amazon.com/gp/aw/d/AISN_NUMBER_HERE | grep -c COMPANY ) | |
if [[ $leCount -gt 0 ]] | |
then | |
echo "Still Lowest... " | |
date | |
sleep $(shuf -i 60-120 -n 1)m | |
else | |
echo "Somebody *may* have you beat on the ITEM-NAME-HERE! " | |
date | |
sleep $(shuf -i 20-60 -n 1)m | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment