Scanner And Daemon: Exit Codes - KAPERSKY ANTI-VIRUS - FOR FREEBSD-OPENBSD-BSDI FILE SERVER User Manual

Table of Contents

Advertisement

15.6. Scanner and Daemon: exit
codes
The list of exit codes that can be returned by the
program. Example of using these codes in a script file.
If you start Scanner or Daemon from a script file, you may analyze its exit
code.
After the task is finished, the program returns one of the following values
(exit codes) in the low half-byte:
0 – no viruses detected;
1 – scanning was interrupted;
2 – objects containing a modified or damaged virus were detected;
3 – suspicious objects were detected;
4 – one or more viruses were detected;
5 – all infected objects were disinfected;
6 – infected objects were deleted;
7 – the kavscanner or kavdaemon file is corrupted;
8 – files are corrupted or an I/O error has occurred.
In the high half-byte, the program returns the following advanced codes:
8 – virus-definition databases are corrupted;
4 – virus-definition databases are not detected;
1 – key files are not loaded or the license is expired.
!" The advanced code 1 can also be returned at the user prompt.
These codes are assigned only if a program error has occurred.
For example, a script file may contain the following strings:
./kavscanner -o{/home/Vir1}
exitCode=$?
lo=$[$exitcode%16]
183
183
183
183
A P P E N D I X
B

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ANTI-VIRUS - FOR FREEBSD-OPENBSD-BSDI FILE SERVER and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents