Notifying Site Administrators When Sites Are Modified

#!/bin/sh
#the site id is the first argument
siteid="$1"
# look up the site administrator name from the site id
siteadmin_email=`cat /home/virtual/$siteid/info/current/siteinfo |grep ^email |cut -d' ' -f3`
# send mail to the site admin
echo '< some email content>' |
mail -s 'your domain is being edited' $siteadmin_email