--- Chris de Vidal <[EMAIL PROTECTED]> wrote:
> I guess I could use a structure like this...
> In /etc/clamav.exclude:
> EXCLUDES= \
> --exclude=/foo \
> --exclude=/bar
<snip>

Just tested it.  Works great, except I've modified it like so:
EXCLUDES="\
    --exclude=/foo \
    --exclude=/bar \
"
The quotes are required.


Here's my actual cron script, in case anyone cares:
===========
#!/bin/bash

# /etc/cron.weekly/clamscan
# Run a scan on the whole system

LOG=/var/log/clamav/`basename $0`.log

# Create /etc/clamav.excludes with network mounts and other exclusions:
#EXCLUDES="\
#    --exclude=/hjx-dpdsk-01 \
#    --exclude=/dmc-inkjet-01 \
#    --exclude=/dmc-dpnt-01 \
#"

# If it exsists, include it
[ -f /etc/clamav.excludes ] && source /etc/clamav.excludes

nice -n 19 clamscan $EXCLUDES --recursive --quiet --log=$LOG /

if [ $? = 1 ]
then
    echo "Viruses found.  Check $LOG"
fi

=====
/dev/idal
"GNU/Linux is free freedom" --Me

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Clamav-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-users

Reply via email to