#!/bin/bash#!/bin/bash
#Check if removed-but-not-purgedtest -x /usr/share/logwatch/scripts/logwatch.pl || exit 0
#execute#/usr/sbin/logwatch --output mail
/usr/sbin/logwatch --range Yesterday --mailto myemail
#Note: It's possible to force the recipient in above command#Just pass --mailto address@a.com instead of --output mail
# TODO test variables in the mailer string to see if the To/From/Subject can be set# From here with out breaking anything. This would allow mail/mailx/nail etc..... -mgt#mailer = "/usr/sbin/sendmail -t"
mailer = "/usr/sbin/sendmail -4"