#!/bin/sh

# Summary appears on stderr; diffs appear on stdout
#
# ~/.webmonitorrc has a file with lines of the form:
#   filename url
# where filename is the name of a file in ~/.webmonitor.d that contains
# the "benchmark" copy of the url. 
# where url is the url to check.
#
# To create/update the benchmark file:
#   lynx -source <url> >~/.webmonitor.d/<filename>
#

while read file url
do
  if [ -r ~/.webmonitor.d/$file ]
  then
    if lynx -source $url | diff -c - ~/.webmonitor.d/$file 
    then :
    else echo "Changed ($file): $url" >&2
    fi
  fi
done <~/.webmonitorrc

# --Bruce Dawson
exit 0


-------------------------------------------------
This mail sent through IMP: www.milessmithfarm.net

**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************

Reply via email to