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

2017-11-03 Thread Reindl Harald
Am 03.11.2017 um 12:41 schrieb Chris Johnson: OK, so I've not used sockets before but with a little tweaking and a lot of googling I've got it working and it appears to work really well. Thank you golden rule: whenever you can have a long running service istead fork off processes use it, b

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

2017-11-03 Thread Chris Johnson
OK, so I've not used sockets before but with a little tweaking and a lot of googling I've got it working and it appears to work really well. Thank you Off to integrate it into the code now, or to tell someone else to do it for me ;-) Chris Johnson On 2 November 2017 at 19:42, Kris Deugau wrot

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

2017-11-02 Thread Kris Deugau
Chris Johnson wrote: I have on access scanning configured and we successfully run a script when a virus is found. This script allows us to make a log that the file was scanned and a virus found. However we'd also like to run a script to make a log when the file has been scanned and no virus has

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

2017-11-02 Thread Reindl Harald
Am 02.11.2017 um 19:47 schrieb Reindl Harald: Am 02.11.2017 um 19:21 schrieb Chris Johnson: Because it takes too long to launch.  Clamd called from php took about 5 seconds, on access detects the file in under .05seconds no - if you fire up clamd on demand you are doing it plain wrong cla

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

2017-11-02 Thread Reindl Harald
Am 02.11.2017 um 19:21 schrieb Chris Johnson: Because it takes too long to launch. Clamd called from php took about 5 seconds, on access detects the file in under .05seconds no - if you fire up clamd on demand you are doing it plain wrong clamd is designed as a long running service and clam

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

2017-11-02 Thread Matus UHLAR - fantomas
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 th

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

2017-11-02 Thread Chris Johnson
Because it takes too long to launch. Clamd called from php took about 5 seconds, on access detects the file in under .05seconds Chris Johnson On 2 November 2017 at 15:34, Reindl Harald wrote: > > > Am 02.11.2017 um 16:28 schrieb Chris Johnson: >> >> PHP checks for the existence for the file wit

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

2017-11-02 Thread Genet Bouron
Am 02.11.2017 um 18:31 schrieb Genet Bouron: >> 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. >i can't remember that i asked you! No, you did

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

2017-11-02 Thread Reindl Harald
Am 02.11.2017 um 18:31 schrieb Genet Bouron: 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. i can't remember that i asked you! anything based on "creat

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

2017-11-02 Thread Genet Bouron
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

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

2017-11-02 Thread Reindl Harald
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

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

2017-11-02 Thread Chris Johnson
I have on access scanning configured and we successfully run a script when a virus is found. This script allows us to make a log that the file was scanned and a virus found. However we'd also like to run a script to make a log when the file has been scanned and no virus has been found there are