CHAPTER G G - 29
$ fsav --archive --scantimeout=180 --allfiles /mnt/
smbshare
Scan and list files with '.EXE' or '.COM' extension in a directory '/mnt/smbshare':
$ fsav --list --extensions='exe,com' /mnt/smbshare
Scan and disinfect or rename infected/suspected files without confirmation:
$ fsav --virus-action1=disinf --virus-action2=rename -
-auto /mnt/smbshare
Scan files found by find(1) -command and feed the scan report to the mail(1) com-
mand:
$ find /mnt/smbshare -type f | \
fsav --input 2>&1 | \
mail -s 'FSAV Report' admin@localhost
Scan files found by the find(1) command and feed infected/suspected files to the
mv(1) command to move infected/suspected files to /var/quarantine directory. Any
errors occured during the scan are mailed to admin@localhost.
$ (find /mnt/smbshare -type f | fsav --short --input |
\
xargs -n 1 --replace mv {} /var/quarantine) 2>&1 |
\
mail -e -s 'FSAV Error Report' admin@localhost