Listing 9. Example Webmaster E-mail Script

#!/bin/sh
# Example Webmaster Email Script
# Send Webmaster information about website.
# This is run automatically by a cron entry.
(
echo "To: Web Admin <webmaster@main-isp.com>"
echo "From: System <root@main-isp.com>"
echo "Subject: 24 Hour Web Info"
echo
export \
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/etc/httpd/analog:

analog -G +gwebmaster.cfg
) 2>&1 | /usr/lib/sendmail -t