I am indeed a victim of LIFO. Ordering at 0530 guaranteed my phone is on the pallet all the way in the back of the warehouse, up against the wall. That's why I've had a tracking number which tracks nothing for two days...
Being impatient, yet lazy and sleepy:
Code:
#!/bin/bash
touch /tmp/fedex.txt
rm -f /tmp/fedex.txt
wget http://fedex.com/Tracking?tracknumbers=40863656xxxx -O /tmp/fedex.txt -q
c=`cat /tmp/fedex.txt | grep -i "no information" | wc -l`
if [ "$c" == "1" ]; then
echo "Not Yet dammit" > /dev/nul
else
echo "YES YES YES" | mail -s "Yes by golly!" my@address.com
echo "YES YES YES" | mail -s "Yes by golly!" mycellphone@txt.att.net
echo "YES YES YES" | mail -s "yes by golly!" mycellphone@mms.att.net
fi
And then:
crontab -e
*/5 * * * * /mypath/checkfed.sh
Good luck, y'all, and good night.