How can I run an antivirus s/w as a cron job to check for virus on a particular set of folders on my server(Apache, Drupal) where I store the files retrieved from users?
Any ideas?
|
|
Install ClamAV and set the cron job to run |
|||||
|
|
You'll need to install an AV client which supports command line arguments and some form of script-able definition and executable update. AVG and Clam can do this - you need to decide which is more suitable for you. You may want to reconsider using CRON to launch a virus scan, and instead use a directory change trigger, which launches the scan as the new file is created. A perl module is available as an example. |
|||
|
|