Hi,
I've setted up the clamd this is the clamav.conf file:
#Automatically Generated by clamav-daemon postinst
#To reconfigure clamd run #dpkg-reconfigure clamav-daemon
LocalSocket /var/run/clamav/clamd.ctl
FixStaleSocket
User root
AllowSupplementaryGroups
ScanMail
ScanArchive
ArchiveMaxRecursion 5
ArchiveMaxFiles 1000
ArchiveMaxFileSize 10M
ReadTimeout 180
MaxThreads 12
MaxConnectionQueueLength 15
StreamSaveToDisk
LogFile /var/log/clamav/clamav.log
LogTime
LogFileMaxSize 0
VirusEvent /usr/bin/aggiornaFile.sh %v
PidFile /var/run/clamav/clamd.pid
DatabaseDirectory /var/lib/clamav/
SelfCheck 3600


The first time I've had succesfully used VirusEvent command to touch a file.
Now VirusEvent command (/usr/bin/aggiornaFile.sh %f) is the following script:
touch /home/virus
echo $1 >> myFile
and I was assuming to see the list of the filenames... or the virus (if I had use %v) but the file is growing with empty lines! If it locate 5 virus I will have 5 new empty lines!
The test command I use is
clamdscan /home
Thanks in advance for your help,
Enrico
_______________________________________________
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users

Reply via email to