#Time between reports in seconds INTERVAL=86400 MAILSERVER=mail SUBJECT="Firewall statistics" SENDER=root@firewall MAILTO=root . /etc/config PATH=/bin hostname ${HOSTNAME}.${DOMAIN} while [ true ]; do (echo -n "/proc/loadavg: ";cat /proc/loadavg;echo;echo "Verbose listing of firewall-rules:"; ipchains -L -v) | smtpclient -S ${MAILSERVER} -L -s "${SUBJECT}" -f ${SENDER} ${MAILTO}; sleep ${INTERVAL}; done&