....
 

Guardian Digital Inc. > InfoCenter > Mailing List Archives > Amavis

Amavis Mailing List Archive

From: Keith Peer (vexira@gmail.com)
Date: Fri Dec 17 2004 - 17:57:00 EST


Hope this helps.

Return values

Besides the program displays result of scanning on the screen or in
log file it is able to inform users about scanning tasks' results by
return values. This feature is useful for getting information in case
of scanner is run automatically or scheduled.

There are three different basic return values:

0

Suspicious or infected objects were not found.

1

Suspicious or infected objects were not found among target objects.

2

The specified actions (`--action') were performed successfully on the
suspicious or infected objects (except if they were "stop" or "skip").

If errors occur during scanning, the program is not able to check or
clean some specified objects completely. The return values can change
depending on the errors as follows (the status order is equal to the
basic values'):

3-5

Some files could not be read because of password protection or they
were corrupted or exploit danger. These files may carry malicious
codes.

6-8

System error during scanning.

After it had been repaired you should retry scanning. The cause of the
error is that the specified files do not exist or the program has not
permission to access to them. High loaded systems could also result
the same error codes.

Generally, higher error codes mean bad parameter specification:

255

Invalid command line or configuration file parameters, check them!

254

Failed to run scan engine or the specified virus database does not exist!

253

Bad (incompatible) virus database. Check its version!

252

Failed to start scanning maybe for short system resources!

251

Unable to initialize quarantine! Check the value of `--quarantine' parameter!

250

Program running aborted by external request. (SIGINT, SIGTERM)

Return value is always 0 if quarantine operations could be performed
successfully.

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/



[ About Guardian Digital ] - [ Press Center ] - [ Contact Us ] - [ System Activation ] - [ Reseller Info ] - [ Online Store ] - [ Site Map ]
Copyright (c) 2000 - 2004 Guardian Digital, Inc. Linux Lockbox and EnGarde are Trademarks of Guardian Digital, Inc.