clamav-devel/docs/html/node22.html
28e73e95
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
 
 <!--Converted with LaTeX2HTML 2K.1beta (1.48)
 original version by:  Nikos Drakos, CBLU, University of Leeds
 * revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
 * with significant contributions from:
   Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
 <HTML>
 <HEAD>
5def21ff
 <TITLE>Return codes</TITLE>
 <META NAME="description" CONTENT="Return codes">
28e73e95
 <META NAME="keywords" CONTENT="clamdoc">
 <META NAME="resource-type" CONTENT="document">
 <META NAME="distribution" CONTENT="global">
 
 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
 <META NAME="Generator" CONTENT="LaTeX2HTML v2K.1beta">
 <META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
 
 <LINK REL="STYLESHEET" HREF="clamdoc.css">
 
5def21ff
 <LINK REL="previous" HREF="node21.html">
 <LINK REL="up" HREF="node21.html">
28e73e95
 <LINK REL="next" HREF="node23.html">
 </HEAD>
 
 <BODY >
 <!--Navigation Panel-->
5def21ff
 <A NAME="tex2html439"
28e73e95
   HREF="node23.html">
 <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
  SRC="/usr/share/latex2html/icons/next.png"></A> 
5def21ff
 <A NAME="tex2html435"
   HREF="node21.html">
28e73e95
 <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
  SRC="/usr/share/latex2html/icons/up.png"></A> 
5def21ff
 <A NAME="tex2html431"
28e73e95
   HREF="node21.html">
 <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
  SRC="/usr/share/latex2html/icons/prev.png"></A> 
5def21ff
 <A NAME="tex2html437"
28e73e95
   HREF="node1.html">
 <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
  SRC="/usr/share/latex2html/icons/contents.png"></A>  
 <BR>
5def21ff
 <B> Next:</B> <A NAME="tex2html440"
   HREF="node23.html">Compatible software</A>
 <B> Up:</B> <A NAME="tex2html436"
   HREF="node21.html">Problem solving</A>
 <B> Previous:</B> <A NAME="tex2html432"
   HREF="node21.html">Problem solving</A>
  &nbsp <B>  <A NAME="tex2html438"
28e73e95
   HREF="node1.html">Contents</A></B> 
 <BR>
 <BR>
 <!--End of Navigation Panel-->
 
5def21ff
 <H2><A NAME="SECTION00051000000000000000">
 Return codes</A>
 </H2>
     Return codes are very useful, especially in system scripts. You may
     check the return code from <I>clamscan</I>, by running the following
     command:
     <PRE>
 	$ clamscan; echo Return code: $?
 </PRE>
     Here is a list of return codes for <I>clamscan</I>:
 <BR>
28e73e95
 <P>
 
5def21ff
     <B>0: </B> No virus was found.
 <BR>    <B>1: </B> Virus(es) detected.
 <BR>    <B>40: </B> Unknown option passed to <I>clamscan</I>. Please check
 	    <I>clamscan -help</I> or manual page for available options.
 <BR>    <B>50: </B> Virus database initialization error. Probably it doesn't exist
 	    at the default location or it's malformed (e.g. broken digital
 	    signature)
 <BR>    <B>52: </B> Not supported file type - clamscan only supports regular files,
 	    directories and symlinks.
 <BR>    <B>53: </B> Can't open directory.
 <BR>    <B>54: </B> Can't open file.<IMG
  WIDTH="13" HEIGHT="21" ALIGN="BOTTOM" BORDER="0"
  SRC="img4.png"
  ALT="$^6$">
 <BR>    <B>55: </B> I/O error during read.
 	    <A NAME="tex2html26"
   HREF="footnode.html#foot779"><SUP>6</SUP></A>
 <BR>    <B>56: </B> Can't stat input file or directory. File (or directory) you want to
 	    scan doesn't exist.
 <BR>    <B>57: </B> Can't get absolute pathname of current working directory. Your
 	    current pathname is longer then 200 characters. This is bad and
 	    you may need to recompile ClamAV to fix it.
 <BR>    <B>58: </B> I/O error. Please check the filesystem.
 <BR>    <B>59: </B> Can't get information about current user (running clamscan).
 <BR>    <B>60: </B> Can't get information about user <I>clamav</I>. User <I>clamav</I>
 	    (default unprivileged user) doesn't exist in /etc/passwd.
 <BR>    <B>61: </B> Can't fork. Can't create new process, please check your system limits.
 <BR>    <B>63: </B> Can't create temporary file or directory. Please check /tmp
 	    permissions or use -tempdir
 <BR>    <B>64: </B> Can't write to temporary directory. Please specify another one.
 <BR>    <B>70: </B> Can't allocate and clear memory. This is a critical error, please
 	    check your system.
 <BR>    <B>71: </B> Can't allocate memory. Look above.
 <BR>
 <P>
 <HR>
 <!--Navigation Panel-->
 <A NAME="tex2html439"
   HREF="node23.html">
 <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
  SRC="/usr/share/latex2html/icons/next.png"></A> 
 <A NAME="tex2html435"
   HREF="node21.html">
 <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
  SRC="/usr/share/latex2html/icons/up.png"></A> 
 <A NAME="tex2html431"
   HREF="node21.html">
 <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
  SRC="/usr/share/latex2html/icons/prev.png"></A> 
 <A NAME="tex2html437"
   HREF="node1.html">
 <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
  SRC="/usr/share/latex2html/icons/contents.png"></A>  
 <BR>
 <B> Next:</B> <A NAME="tex2html440"
   HREF="node23.html">Compatible software</A>
 <B> Up:</B> <A NAME="tex2html436"
   HREF="node21.html">Problem solving</A>
 <B> Previous:</B> <A NAME="tex2html432"
   HREF="node21.html">Problem solving</A>
  &nbsp <B>  <A NAME="tex2html438"
   HREF="node1.html">Contents</A></B> 
 <!--End of Navigation Panel-->
28e73e95
 <ADDRESS>
 Tomasz Kojm
5def21ff
 2003-11-11
28e73e95
 </ADDRESS>
 </BODY>
 </HTML>