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@example.com 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@example.com?
Yes. -- Sandy List replies only please! Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org