On Thu, 24 Jun 2004 at 11:32:15 +0200, Philipp Ringli wrote:
>
> todd,
>
> i did that and i get this:
>
> [EMAIL PROTECTED] /]# /usr/bin/freshclam --datadir=/var/lib/clamav
> --log=/var/log/clamav/freshclam.log --verbose
> Current working dir is /var/lib/clamav
> ClamAV update process started at Thu Jun 24 11:25:06 2004
> Connected to database.clamav.net (212.31.160.239).
> Reading CVD header (main.cvd): OK
> main.cvd is up to date (version: 23, sigs: 21096, f-level: 2, builder:
> ddm)
> Connected to database.clamav.net (212.31.160.239).
> Reading CVD header (daily.cvd): OK
> daily.cvd is up to date (version: 367, sigs: 970, f-level: 2, builder:
> diego)
>
>
> but i still get email notification from my server:
> + LOG_FILE=/var/log/clamav/freshclam.log
> + '[' '!' -f /var/log/clamav/freshclam.log ']'
> + /usr/bin/freshclam --quiet --datadir=/var/lib/clamav
> --log=/var/log/clamav/freshclam.log
> (no like that because of the set -x)
>
> questions:
> 1. why am i getting the above email? nothing seems to be wrong, or is
> there?
> 2. where could i edit the email address this is sent to?
>
> sorry for the newbish questions...
>
Philipp,
Ad 1) If I understand correctly, you succeeded in getting rid of errors
and warnings like
"Cron <[EMAIL PROTECTED]> nice -n 19 run-parts /etc/cron.daily
run-parts: /etc/cron.daily/freshclam exited with return code 1
error: Ignoring xdm.rpmnew, because of .rpmnew ending"
and
"run-parts: component /etc/cron.daily/.freshclam.swp is not an=20
executable plain file".
And now you just don't want to get emails about updating database,
right?
So in your /etc/cron/daily/freshclam add redirecting output to /dev/null
Add to the last part of command ">/dev/null" or even ">/dev/null 2>&1"
(but you'd better receive errors when something goes wrong, so use the
first form).
E.g.:
/usr/bin/freshclam \
--quiet \
--datadir=/var/lib/clamav \
--log=$LOG_FILE >/dev/null
Ad 2) You can try to redirect output to mail to a particular user.
Maybe this will work:
/usr/bin/freshclam \
--quiet \
--datadir=/var/lib/clamav \
--log=$LOG_FILE | mail someuser
Of course remove "set -x" as it was needed only for debugging.
--
Tomasz Papszun SysAdm @ TP S.A. Lodz, Poland | And it's only
[EMAIL PROTECTED] http://www.lodz.tpsa.pl/iso/ | ones and zeros.
[EMAIL PROTECTED] http://www.ClamAV.net/ A GPL virus scanner
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users