Mailinglist Archive: opensuse (3434 mails)

< Previous Next >
Re: [opensuse] amavisd warning failure?
  • From: Sandy Drobic <suse-linux-e@xxxxxxxxxxxxxxxxxxxxxxx>
  • Date: Sun, 17 Feb 2008 18:04:23 +0100
  • Message-id: <47B86917.5040405@xxxxxxxxxxxxxxxxxxxxxxx>
Hylton Conacher (ZR1HPC) wrote:

Next problem was the script to update the clamav signatures.

From Sandy:
--------------------
#!/bin/sh
# update of clam-av signatures

EMAIL=postmaster@xxxxxxxxxxx
tempfile=`mktemp`

freshclam > $tempfile
statusclam=$?
#echo "test clam" > $tempfile
#statusclam=0

case "$statusclam" in

0 ) echo "Clamav has gotten new signatures!"

;;
1 ) echo "Clamav is up-to-date'
;;
255) cat $tempfile|mail -s "Clamav couldn't update: $statusclam" $EMAIL
;;
esac

rm $tempfile
--------------------
I assume that What should I put my email address in place of
EMAIL=postmaster@xxxxxxxxxxx?

Yes.


--
Sandy

List replies only please!
Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >