108f2d43 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
468b9e48 |
|
108f2d43 |
<!--Converted with LaTeX2HTML 2002-2-1 (1.70) |
468b9e48 |
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> |
c7217226 |
<TITLE>Return codes</TITLE>
<META NAME="description" CONTENT="Return codes"> |
468b9e48 |
<META NAME="keywords" CONTENT="clamdoc">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
|
108f2d43 |
<META NAME="Generator" CONTENT="LaTeX2HTML v2002-2-1"> |
468b9e48 |
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
<LINK REL="STYLESHEET" HREF="clamdoc.css">
|
c7217226 |
<LINK REL="previous" HREF="node26.html">
<LINK REL="up" HREF="node26.html"> |
468b9e48 |
<LINK REL="next" HREF="node28.html">
</HEAD>
<BODY > |
108f2d43 |
<DIV CLASS="navigation"><!--Navigation Panel-->
<A NAME="tex2html689" |
468b9e48 |
HREF="node28.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
SRC="/usr/share/latex2html/icons/next.png"></A> |
108f2d43 |
<A NAME="tex2html685" |
c7217226 |
HREF="node26.html"> |
468b9e48 |
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
SRC="/usr/share/latex2html/icons/up.png"></A> |
108f2d43 |
<A NAME="tex2html681" |
468b9e48 |
HREF="node26.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
SRC="/usr/share/latex2html/icons/prev.png"></A> |
108f2d43 |
<A NAME="tex2html687" |
468b9e48 |
HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
SRC="/usr/share/latex2html/icons/contents.png"></A>
<BR> |
108f2d43 |
<B> Next:</B> <A NAME="tex2html690" |
c7217226 |
HREF="node28.html">Third party software</A> |
108f2d43 |
<B> Up:</B> <A NAME="tex2html686" |
c7217226 |
HREF="node26.html">Problem solving</A> |
108f2d43 |
<B> Previous:</B> <A NAME="tex2html682" |
c7217226 |
HREF="node26.html">Problem solving</A> |
108f2d43 |
<B> <A NAME="tex2html688" |
468b9e48 |
HREF="node1.html">Contents</A></B>
<BR> |
108f2d43 |
<BR></DIV> |
468b9e48 |
<!--End of Navigation Panel-->
|
c7217226 |
<H2><A NAME="SECTION00051000000000000000">
Return codes</A>
</H2>
Return codes are very useful in system scripts. You can check the return |
108f2d43 |
code from <SPAN CLASS="textit">clamscan</SPAN> by running: |
c7217226 |
<PRE>
$ clamscan; echo Return code: $?
</PRE> |
108f2d43 |
Here is the full list of return codes for <SPAN CLASS="textit">clamscan</SPAN>: |
c7217226 |
<BR> |
468b9e48 |
<P> |
69b44259 |
|
108f2d43 |
<SPAN CLASS="textbf">0: </SPAN> No virus was found.
<BR> <SPAN CLASS="textbf">1: </SPAN> Virus(es) detected.
<BR> <SPAN CLASS="textbf">40: </SPAN> Unknown option passed to <SPAN CLASS="textit">clamscan</SPAN>. Please check |
c7217226 |
clamscan -help or manual page for available options. |
108f2d43 |
<BR> <SPAN CLASS="textbf">50: </SPAN> Virus database initialization error. Probably it doesn't exist |
c7217226 |
at the default location or it's malformed (e.g. broken digital
signature) |
108f2d43 |
<BR> <SPAN CLASS="textbf">52: </SPAN> Not supported file type - clamscan only supports regular files, |
c7217226 |
directories and symlinks. |
108f2d43 |
<BR> <SPAN CLASS="textbf">53: </SPAN> Can't open directory.
<BR> <SPAN CLASS="textbf">54: </SPAN> Can't open file.<SPAN CLASS="MATH"><IMG
WIDTH="13" HEIGHT="22" ALIGN="BOTTOM" BORDER="0" |
c7217226 |
SRC="img5.png" |
108f2d43 |
ALT="$^7$"></SPAN>
<BR> <SPAN CLASS="textbf">55: </SPAN> I/O error during read.
<A NAME="tex2html81"
HREF="footnode.html#foot1124"><SUP><SPAN CLASS="arabic">7</SPAN></SUP></A>
<BR> <SPAN CLASS="textbf">56: </SPAN> Can't stat input file or directory. File (or directory) you want to |
c7217226 |
scan doesn't exist. |
108f2d43 |
<BR> <SPAN CLASS="textbf">57: </SPAN> Can't get absolute pathname of current working directory. Your |
c7217226 |
current pathname is longer then 200 characters. This is bad and
you may need to recompile ClamAV to fix it. |
108f2d43 |
<BR> <SPAN CLASS="textbf">58: </SPAN> I/O error. Please check the filesystem.
<BR> <SPAN CLASS="textbf">59: </SPAN> Can't get information about current user (running clamscan).
<BR> <SPAN CLASS="textbf">60: </SPAN> Can't get information about user <SPAN CLASS="textit">clamav</SPAN>. User <SPAN CLASS="textit">clamav</SPAN> |
c7217226 |
(default unprivileged user) doesn't exist in /etc/passwd. |
108f2d43 |
<BR> <SPAN CLASS="textbf">61: </SPAN> Can't fork. Can't create new process, please check your system limits.
<BR> <SPAN CLASS="textbf">63: </SPAN> Can't create temporary file or directory. Please check /tmp |
c7217226 |
permissions or use -tempdir |
108f2d43 |
<BR> <SPAN CLASS="textbf">64: </SPAN> Can't write to temporary directory. Please specify another one.
<BR> <SPAN CLASS="textbf">70: </SPAN> Can't allocate and clear memory. This is a critical error, please |
c7217226 |
check your system. |
108f2d43 |
<BR> <SPAN CLASS="textbf">71: </SPAN> Can't allocate memory. Look above. |
c7217226 |
<BR>
<P> |
108f2d43 |
<DIV CLASS="navigation"><HR> |
c7217226 |
<!--Navigation Panel--> |
108f2d43 |
<A NAME="tex2html689" |
c7217226 |
HREF="node28.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
SRC="/usr/share/latex2html/icons/next.png"></A> |
108f2d43 |
<A NAME="tex2html685" |
c7217226 |
HREF="node26.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
SRC="/usr/share/latex2html/icons/up.png"></A> |
108f2d43 |
<A NAME="tex2html681" |
c7217226 |
HREF="node26.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
SRC="/usr/share/latex2html/icons/prev.png"></A> |
108f2d43 |
<A NAME="tex2html687" |
c7217226 |
HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
SRC="/usr/share/latex2html/icons/contents.png"></A>
<BR> |
108f2d43 |
<B> Next:</B> <A NAME="tex2html690" |
c7217226 |
HREF="node28.html">Third party software</A> |
108f2d43 |
<B> Up:</B> <A NAME="tex2html686" |
c7217226 |
HREF="node26.html">Problem solving</A> |
108f2d43 |
<B> Previous:</B> <A NAME="tex2html682" |
c7217226 |
HREF="node26.html">Problem solving</A> |
108f2d43 |
<B> <A NAME="tex2html688"
HREF="node1.html">Contents</A></B> </DIV> |
c7217226 |
<!--End of Navigation Panel--> |
468b9e48 |
<ADDRESS>
Tomasz Kojm |
108f2d43 |
2004-07-22 |
468b9e48 |
</ADDRESS>
</BODY>
</HTML> |