linux – Running clamscan with the file list function


I am trying to schedule some tasks using ClamAV but it cannot find the find the file that contains the directories I want it to scan.

  *Using sudo doesn’t work.
  *The files are set with permissions 644.
  *Files are visible in command line as white.

My goal is to use these lists so that different folders of the server can be scanned during low usage times. I am running this on CentOS 7.

[ENTRY]
#clamscan -r -i –file-list=/home/web_folders.txt --log=/var/log/clamav/clamscan_web.log

[ERROR]
–file-list=/home/web_folders.txt: No such file or directory
WARNING: –file-list=/home/web_folders.txt: Can't access file