Hi anyone,
I recently installed avast4workstation-1.0.8 smoothly.
Works like a charm!
Now I run a daily check (and update) with the help of cron.
I was wondering if there is a possibility to send me the last part of the report per mail.
I have this in my cron.daily
#!/bin/bash
LOGFILE=/var/log/virus.log
echo “================================================” > $LOGFILE
echo “Last update of the virus scanners:” >> $LOGFILE
date >> $LOGFILE
echo “================================================” >> $LOGFILE
echo “-------------------------------------------” >> $LOGFILE
echo “Scan with Avast!..” >> $LOGFILE
sudo /usr/bin/avast /root /usr /var /home /tmp >> $LOGFILE
RETVAL=$?
echo -n "return value = " >> $LOGFILE
echo $RETVAL >> $LOGFILE
echo “-------------------------------------------” >> $LOGFILE
echo “” >> $LOGFILE
echo “-------------------------------------------” >> $LOGFILE
echo “Updating Avast! …” >> $LOGFILE
sudo /usr/bin/avast-update >> $LOGFILE
echo “-------------------------------------------” >> $LOGFILE
echo “” >> $LOGFILE
#|/usr/sbin/sendmail xxxxx@xxxxxxx.net < $LOGFILE
#rm -f $LOGFILE
when I do so I can always look at the logfile the time I get home from work…
But mailing me would be nice.
Any options?
Thanks in advance!
John