# The next variable can be set for multiple addresses
# (i.e. jsmith@yahoo.com,jsmith@hotmail.com)
MAILADD=status
# Use secure copy to download today's log files
scp "admin@ISPlogsrv.isp.com#22:/app/weblog/access.ISPlogsrv" $LOGDIR
if [ $? -gt 0 ]; then
mail $MAILADD <
From: $0
Subject: Web Server Log
The download of log files
from ISPlogsrv to webtrsrv
has failed. The files must
be downloaded immediately.
See $0 for details. Once the
files have been downloaded,
click "Analyze Now" for each
website1 Webtrends profile.
Otherwise, there will be a
missing day in the web
statistics.
EOF
fi;
exit 0
----------------CUT HERE -----------
This tip generously supported by: gideon@infostruct.net
NOTE: All tips provided are USE AT YOUR OWN RISK. Tips are submitted
by various unix admins around the globe. UGU suggest you read and
test each tip in a non-volitile environment before placing into
production.