Koozali.org: home of the SME Server

Forcing a manual virus scan

Offline judgej

  • *
  • 375
  • +0/-0
Forcing a manual virus scan
« on: February 24, 2007, 05:10:32 PM »
Is there a way to do this?

I've just upgraded a server, and I want to force it to do a complete virus scan. Any ideas how I would go about doing that?

-- JJ

Update: I think this works, though not through the normal background process (so it won't e-mail the results to the administrator):

Code: [Select]

nohup /usr/bin/clamscan  --recursive --infected --stdout --log /var/log/clamd/clamscan.log --exclude=/proc --exclude=/sys --exclude=/usr/share --exclude=/var --exclude=/var/spool/clamav/quarantine --move=/var/spool/clamav/quarantine / &
-- Jason

Offline rkscscc

  • ***
  • 44
  • +0/-0
    • RKS Computer Solutions
Forcing a manual virus scan
« Reply #1 on: February 28, 2007, 04:07:24 PM »
quick and dirty solution:

Code: [Select]
clamscan -v --remove -r /