Tripwire check cron to email results via email

http://fedoranews.org/krishnan/tutor...pwire/05.shtml

The RPM installation of Tripwire sets up a cron job to check the integrity of files, then writes it to host_name.twd. If you want you can also setup a cron job which will send you the details about the changes in your files through email.

Tripwire-check daily cron
Code:
#!/bin/sh
HOST_NAME=`uname -n`
if [ ! -e /var/lib/tripwire/${HOST_NAME}.twd ] ; then
	echo "****    Error: Tripwire database for ${HOST_NAME} not found.    ****"
	echo "**** Run "/etc/tripwire/twinstall.sh" and/or "tripwire --init". ****"
else
        test -f /etc/tripwire/tw.cfg &&  /usr/sbin/tripwire --check
fi
Is it possible/How to modify it to also email me the results as well.

TIA.

 

 

 

 

Top