User manual
www.grisoft.com
Copyright (c) 1992-2006 GRISOFT, s.r.o. All rights reserved.
AVG Linux Email Server / User Manual
35 
Parameter  Description 
-repappend FILE  Reports messages about the test progress and results to the 
specified file; the file name must be given right after this 
option, and separated by the space character; in reverse to 
the previous option, an existing file can be used to append 
the information to the end of the file; when a new file is 
specified, it will be created. 
-repok  Switches on reporting of uninfected files ‘is OK’. 
-stoplevel N  Pauses when an erroneous state is encountered during 
scanning. Requires the integer argument N defining the 
internal code of a state in which the scan shall be paused. 
-h, --help  Prints a brief overview of the program's options and usage. 
-pup  Results in the detection of “potentially unwanted programs” 
within the scanning. Potentially unwanted program can be 
for example spy-ware or other possibly insecure programs. 
Note: If you launch the avgscan command with the –clean parameter, AVG Anti-
Virus
 will attempt to heal all infected files automatically. When the healing is 
successful, a 
$VAULT$.AVG folder is created (unless it exists already) in the home 
directory of the user who performed the test. The infected files are moved into this 
directory then, whereas the cleaned files remain in their original locations. Note the 
infected files are stored in a special 
AVG Anti-Virus format, ensuring they are 
absolutely harmless for your system! 
Return values of 
avgscan program are: 
z  0 – no errors 
z  1 – the test was interrupted by user 
z  2 – an error occurred during the test (e.g. cannot open file event) 
z  3 – file system changes detected 
z  4 – a suspect object found by heuristic analysis 
z  5 – a virus found by heuristic analysis 
z  6 – a particular virus was found 
z  7 – an active virus found in memory 
z  8 – corruption of some of the AVG for Linux E-mail Server command line 
components 
z  10 – an archive contains password protected files 
Some typical examples of 
avgscan use with brief explanations follow: 
z  $ avgscan /home/user 










