--database="/etc/clamav/freshclam.conf" \ here you should have to path to your .cvd, .dat, so on files and not the dir to you conf file - clamscan did not support to read the con.file while scanning see clamscan --help
i think, this here will also not work, you create dynamically by date your log files, this is okay but the option --log="" did'nt create this file if it not exists. Maybe you should have a rule that creates this log file, if it not exists -> read doku for touch this here i would change additionally: /usr/bin/clamscan --exclude ="^/home/tmick/.clamtk/viruses/" \ /usr/bin/clamscan \ --exclude ="^/home/tmick/.clamtk/viruses/" \ but now it looks good for me, this should work now - good job. kind greetings Marc Von / From: Clamav User Mailinglist <mailto:clamav-users@lists.clamav.net> An / To: Newcomer01 <mailto:newcome...@posteo.de> CC / CC: Tim Mcconnell <mailto:tmcconnell...@gmail.com> Gesendet / Sent: Donnerstag, März 23, 2023 um 23:32 (at 11:32 PM) +0100 Betreff / Subject: Re: [clamav-users] How to get rid of or Fix clamonacc error
Okay Marc, I came up with this: #/bin/bash declare clammy.sh PATH=/bin:/usr/bin:/sbin:/usr/sbin /usr/bin/clamscan --exclude ="^/home/tmick/.clamtk/viruses/" \ --exclude="^/home/tmick/Documents/ACI_Learning/CEH/" \ --exclude="^/home/tmick/Nextcloud/Documents/ACI_Learning/" # Try to exclude everything in ACI_Learning dir --exclude="^/home/tmick/Nextcloud/" # Try to exclude everything under Nextcloud dir --exclude="^/run/user/tmick/gvfs/" \ --exclude="^/home/tmick/.gvfs/" \ --exclude="^/home/tmick/.evolution" \ --detect-pua="yes" \ --recursive="yes" \ --quiet \ --infected \ --database="/etc/clamav/freshclam.conf" \ --log="$HOME/.clamtk/history/$(date '+%b-%d-%Y').log" #Just log until I'm sure this works :-)
_______________________________________________ Manage your clamav-users mailing list subscription / unsubscribe: https://lists.clamav.net/mailman/listinfo/clamav-users Help us build a comprehensive ClamAV guide: https://github.com/Cisco-Talos/clamav-documentation https://docs.clamav.net/#mailing-lists-and-chat