Thanks a lot, very helpful!. I have been researching about this for quite a while now, If 'clamd' daemon does not scan anything why do they even have options like "SCAN" "MULTISCAN" "INSTREAM"...etc in its man page, I am just curious.
Pushpa On Thu, Dec 1, 2011 at 3:21 AM, G.W. Haywood <g...@jubileegroup.co.uk> wrote: > Hi there, > > On Thu, 1 Dec 2011 pushpa gouder wrote: > > > ... Is there a way to run clamav as daemon and scan only a folder? > > The daemon scans what you tell it to scan. You tell it to scan things > using another tool, such as 'clamdscan' (for ad-hoc scanning of files, > directories and entire filesystems) or something like 'clamav-milter' > (for a mailserver scanning mail, on the fly, as it arrives). > > When you first load clamav (no matter whether it's the daemon or not) > the time taken to load the virus definitions can be tens of seconds. > If you just want to scan one file, this might be a large fraction of > the total scan time. If you are for example running a mailserver, or > you are scanning things continually throughout the day, this startup > time might be a problem. This is why the daemon exists. It loads > virus definitions into memory, and then waits for something to do. > The downside is that, while it is running, the daemon uses up quite a > lot of memory. > > You only really need to run the daemon if the startup time for loading > the virus definitions would be a practical problem. If for example > you are doing a one-off scan of a directory full of files, then you > don't need to run the daemon and you can just use the 'clamscan' tool > instead of 'clamdscan'. > > -- > > 73, > Ged. > _______________________________________________ > Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net > http://www.clamav.net/support/ml > _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://www.clamav.net/support/ml