Quantcast
Viewing all articles
Browse latest Browse all 2849

System and Network configuration • Re: clamav scan file 1 day old

If I want to scan the /home/foo directory should there be a -r in there somewhere?
If you use the -r option for clamscan, you don't need the find command; e.g.:

Code:

$ clamscan -r /home/foo/ --log="$HOME/$(date +%FT%T)_clamscan.log"
I apologise. I am not clear.

Code:

 find /home/foo -ctime -1 -type f > $HOME/filelist_to_scan.log
Does this create a scan list of all files, including those in nested directories? I put the 2 lines in a bash script and ran a cronjob that executed the file. I got the list and the summary, but deleted the list. The summary says it scanned 0 directories.

Code:

----------- SCAN SUMMARY -----------Known viruses: 8694409Engine version: 1.0.3Scanned directories: 0Scanned files: 1211Infected files: 1Data scanned: 941.11 MBData read: 2089.89 MB (ratio 0.45:1)Time: 163.307 sec (2 m 43 s)Start Date: 2024:06:06 02:00:41End Date:   2024:06:06 02:03:24

Statistics: Posted by rick71 — 2024-06-07 03:44



Viewing all articles
Browse latest Browse all 2849

Trending Articles