#!/bin/bash if [[ $1 == *teksavvy.com* ]] && [[ $2 != "" ]] && [[ $3 == *@* ]] then URL=$1 POSTALCODE=$2 EMAIL=$3 else echo "Syntax: ./teksavvy_cable_avail.sh <URL> <POSTAL_CODE> <EMAIL>" exit 1 fi OUTPUT=`wget -qO- $URL --post-data="postal=$POSTALCODE&submit=Submit" |grep Congratulations` if [[ $OUTPUT == *"is available"* ]] then echo $OUTPUT |mailx -s "Teksavvy Cable Internet Is Here!" $EMAIL fi
0 8 * * * /home/ewu/teksavvy_cable_avail.sh http://teksavvy.com/en/checkontariocable.asp <postal_code> <me@myemail.com>
Thanks for sharing your script. I should start doing this on my Mac since I'm still eagerly waiting for the Ottawa launch.1 minute? Nah 30 seconds is more like it.
Why oh why is the TSI website down? .... Rocky: You damn people running that stupid script every 30 seconds.lol... i've been meaning to make something but every time i think about it i get distracted elsewhere, so thanks.
reply to mlerner