Just a sample of the Echomail archive
[ << oldest | < older | list | newer > | newest >> ]
|  Message 340  |
|  andrew clarke to Ben Ritchey  |
|  Favs  |
|  25 May 16 04:49:10  |
 
23 May 16 14:35, you wrote to me:
ac>> Years ago I wrote a sh script to download a web page, compare it to
ac>> a local copy using diff and email me any changes. The script runs
ac>> twice a day as a cron job.
BR> Cool, dig it up and post!
Here you go...
#!/bin/sh
# webmonitor.sh
#
# Monitor web pages for changes and email the diffs.
WGETOPT="--cache=off --no-check-certificate"
ELINKSOPT="-no-references -no-numbering -dump-width 75"
DIFFOPT="-uw"
BINDIR="/usr/local/bin"
WORKDIR="$HOME/bin/cron/webmonitor"
MAILTO=$USER
# Pretend we're Firefox instead of Wget.
#USERAGENT="Mozilla/5.0 (X11; Linux i686; rv:7.0) Gecko/20100101 Firefox/7.0"
#USERAGENT="Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20100101
Firefox/10.0"
#USERAGENT="Mozilla/5.0 (Windows NT 6.1; WOW64; rv:30.0) Gecko/20100101
Firefox/25.0"
USERAGENT="Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20100101
Firefox/40.0"
# Check that Wget and ELinks are installed.
require_util()
{
if [ ! -f $BINDIR/$1 ]; then
echo "$0: $1 is missing!"
exit 1
fi
}
require_util "wget"
require_util "elinks"
# Get command-line args.
URL=$1
CACHEFILE=$2
# We require two args, otherwise complain.
if [ $# -ne 2 ]; then
echo "Usage: $0
|
[ << oldest | < older | list | newer > | newest >> ]