Using Kaspersky Anti-Virus
29
If no configuration file is specified in the command line at the
component startup, the operating settings will be taken from
the
kav4ws.conf
file
.
The use of this file at startup does not
have to be specified!
You can specify them for the current work session using command line
parameters when starting the
kavscanner
component.
Actions for both simple and container objects use the same syntax (sections
[scanner.object]
and
[scanner.container]
).
4.2.4.
On-demand scan of an individual
directory
One of the commonest tasks implemented by Kaspersky Anti-Virus is the anti-
virus scan and disinfection of an individual directory.
Task: start an anti-virus scan of the /
tmp
directory with automatic
disinfection of all infected objects detected. Delete all objects that
cannot be disinfected.
Create the files
infected.lst
,
suspicion.lst, corrupted.lst
and
warning.lst
to record the filenames of all infected, suspicious and corrupted objects
detected during the scan.
The results of the component operation (starting date, information
about all files, except clean files) will be printed in the report file
kav4ws-kavscanner-current_date-pid.log
that will be created in the
current directory.
Solution: to implement this task, enter at the command line:
# /opt/kaspersky/kav4ws/bin/kav4ws-kavscanner -rlq -
pi/tmp/infected.lst -ps/tmp/suspicion.lst
–
pc/tmp/corrupted.lst -pw/tmp/warning.lst -o
/tmp/kav4ws-kavscanner-`date "+%Y-%m-%d-$$"`.log -i3
-ePASBMe
–
j3 -mCn /tmp
4.2.5.
Scheduled scan
Kaspersky Anti-Virus tasks can be scheduled to run using the
cron
application.