
A P P E N D I X B
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]
hi=$[$exitcode/16]
case $lo in
;;
7)
echo 7 - File kavscanner is corrupted
...
;;
0)
echo 0 - No viruses were found
;;
*)
echo Error!
esac
case $hi in
258