#!/bin/bash RESPONSE=$(curl -sA "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:33.0) Gecko/20100101 Firefox/33.0" http://www.amazon.com/gp/product/B00O9JLBOC | grep -io "Sign up to be notified when this item becomes available") if [ "$RESPONSE" != "Sign up to be notified when this item becomes available" ]; then /usr/bin/mail -s "PS4 Bundle Available Now!" myname@gmail.com < /home/bill/bin/ps4amazonalert.txt crontab -l | sed '/^[^#].*\/home\/bill\/bin\/ps4_checker.sh/s/^/#/' | crontab - fi