Micah,


I did not pay attention to this parameter.


Thank you for discovering it,


Zvi


On 1/5/2021 3:53 AM, Micah Snyder (micasnyd) via clamav-users wrote:

Zvi,

 

Yes, clamscan has a --max-scantime=#n option, which is measured in milliseconds.  Clamscan will check the time limit periodically and abort the scan if the time limit has been exceeded.  There is a similar config option for clamd in clamd.conf.

 

Disclaimer: the limit is not precise as clamscan may be busy decompressing or parsing a file in between checks.  It’s useful mostly when scanning large archives and such to abort partway through a long scan.   Ideally it would monitor the scan in a watchdog process or something so it could abort the scan more precisely but unfortunately it doesn’t work that way.

 

Regards,

Micah

 

From: clamav-users <clamav-users-boun...@lists.clamav.net> On Behalf Of Zvi Kave via clamav-users
Sent: Monday, December 28, 2020 8:04 AM
To: clamav-users@lists.clamav.net
Cc: Zvi Kave <zvi.k...@gmail.com>
Subject: [clamav-users] Terminate clamscan after specific time

 

Hi,

Is there a way to Terminate clamscan after specific time with summary ?

Regards,

Zvi


_______________________________________________

clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml
_______________________________________________

clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml

Reply via email to