Hi Friends,
I've created a offline scanning scripts to run daily offline
scanning in a Mac OS X Server (Panther). This is how the script look
like.
#!/bin/bash
clamscan=/usr/local/clamav/bin/clamscan
freshclam=/usr/local/clamav/bin/freshclam
quarantine_dir="/Volumes/Server\ HD/Users/admin/virus/quarantine"
# Update before we Start Scan
$freshclam
# Now let's start
scan_log_file="scan-log-`date +%d%m%Y`.log"
$clamscan -i -r /Volumes/ --log=/Volumes/Server\ HD/Users/admin/virus/
$scan_log_file --move=$quarantine_dir --exclude-dir=$quarantine_dir
And I got this error messages.
ERROR: /Volumes: Could not parse regular expression
I wanted to quarantine the files to "/Volumes/Server HD/Users/admin/
virus/quarantine/"
The log files is OK. But not the scanning. It will recursively move
scan the quarantine directory and caused an infinite loop.
I wander will the / and spaces in directory path will cause confusion
in the --exclude-dir parameter. Personally, I am not good in REGEXP
at all. Please help.
---
Regards,
C. K. Ong (Chris)
Linux System Engineer
RHCT Cert No: 603004347692007
http://www.redhat.com/rhce/rhce603004347692007.html
My Directory Sdn. Bhd.
Your Open Source Partner.
http://www.md.com.my http://www.net.my
2005
----------------------------------------------------------------------
If you want to fill in Coke to a cup with with water, you will first
eed to pour out the water.
Same for learning Linux, you will need to forget about Windows before
you learn Linux.
----------------------------------------------------------------------
*********************************************
* *POWERED BY BYNARI INSIGHT SERVER* *
* The Enterprise Email Server That Rocks! *
*********************************************
_______________________________________________
http://lurker.clamav.net/list/clamav-users.html