[clamav-users] Run script on file scanned but no virus found

Genet Bouron gbouron11 at outlook.com
Thu Nov 2 17:31:45 UTC 2017


Reindl,

Quit being an ass. Your recent posts have taken a very negative tone. You have been kicked off of other lists because you are rude and impolite. Just stop talking.

STOP IT and grow up.

Genet

Am 02.11.2017 um 16:28 schrieb Chris Johnson:
> PHP checks for the existence for the file with (deleted) in the file
> name, blocks the addition of this file to our records and deletes it.
> Clam AV typically creates this additional file within 0.025 seconds
> when testing with the eicar test file
>
> Is there a way of getting clamd to run a script when a virus is not found?

why in the world don't you use clamdscan with exec() from your php-script and deal with the return value instead of such constructs with race conditions? 



More information about the clamav-users mailing list