问题原文
原帖链接 · NoNo · CC BY-SA 4.0
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
已采纳解答
原帖链接 · Michael Hampton · CC BY-SA 4.0
You copied and pasted a Unicode character that looks like a hyphen, but is not actually.
The character you pasted was –, which an en dash.
The actual character you should be using is -, which is a plain hyphen as it appears on your keyboard. In this case you should have two of them, i.e. --file-list=...
This is an error in whatever tutorial you were reading. Some content management systems change hyphens into Unicode dashes if they aren't properly escaped in that CMS's editor.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
