36
5.2.4. On-demand scan of an individual
folder
One of the most commonly used tasks implemented by Kaspersky Anti-Virus is
anti-virus scan and disinfection of an individual folder.
Task: start an anti-virus scan of folder /tmp with automatic disinfection
of all infected objects detected. Delete all objects that could not be
disinfected.
Create files infected.lst, suspicion.lst, corrupted.lst and warning.lst in
which you can save the filenames of all infected, suspicious and cor-
rupted objects detected during the scan.
The results of the component operation (starting date, information
about all files, except clean files) will be printed only into the report file
kav4fs-kavscanner-current_date-pid.log that you must save in the
same folder.
Solution: in order to implement this task enter in the command line:
# kav4fs-kavscanner -rlq -pi/tmp/infected.lst
-ps/tmp/suspicion.lst –pc/tmp/corrupted.lst
-pw/tmp/warning.lst -o /tmp/kav4fs-kavscanner-`date
"+%Y-%m-%d-$$"`.log -i3 -ePASBMe –j3 -mCn /tmp
5.2.5. Scheduled scan
Scheduled programs startup, including Kaspersky Anti-Virus tasks, is performed
using cron application.
Task: Run an anti-virus scan of /home folder every day at 0:00; use
the
scan
/etc/kav/scanhome.conf.
Solution: in order to perform this task, do the following:
1.
Create configuration file /etc/kav/scanhome.conf and specify all
required scan settings in this file.
2.
Edit file that defines the rules for the operation of the cron
(crontab-e) process by entering the following line:
Kaspersky Anti-Virus ® 5.5 for Linux and FreeBSD Workstation and File Server
settings
specified
in
the
configuration
file
Need help?
Do you have a question about the ANTI-VIRUS 5.5 - FOR LINUX-FREEBSD WORKSTATION AND FILE SERVER and is the answer not in the manual?