On Tue, Mar 9, 2010 at 6:50 PM, Timothy Legge <timle...@gmail.com> wrote: > Hi > > I am trying to schedule a cron job to scan files and if a virus is > noticed to log that via syslog so it can be sent to a remote syslog > server.
[snip] > Should I approach this in a different way like using clamscan instead? > It does not look like clamscan can write to syslog but I could be > wrong. I figured out that something like this will do pretty much what I want: find /home -ignore_readdir_race -nowarn -mmin -61 -type f | grep -v '/proc/' | grep -v '/sys/' | xargs -r clamscan --infected --no-summary --stdout | logger -t clamav -p security.alert The only question now is whether there is a noticable difference in speed between clamdscan and clamscan? Tim _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://www.clamav.net/support/ml