#!/bin/bash SYSADMIN=username@domain # Run up2date /usr/sbin/up2date -u > /tmp/up2date.log 2>&1 # Mail results /bin/mail -s "up2date report for `hostname -s`" $SYSADMIN < /tmp/up2date.log