<!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> <TITLE>Return codes</TITLE> <META NAME="description" CONTENT="Return codes"> <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"> <LINK REL="previous" HREF="node25.html"> <LINK REL="up" HREF="node25.html"> <LINK REL="next" HREF="node27.html"> </HEAD> <BODY > <!--Navigation Panel--> <A NAME="tex2html589" HREF="node27.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html585" HREF="node25.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html581" HREF="node25.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html587" 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="tex2html590" HREF="node27.html">ClamAV-certified software</A> <B> Up:</B> <A NAME="tex2html586" HREF="node25.html">Problem solving</A> <B> Previous:</B> <A NAME="tex2html582" HREF="node25.html">Problem solving</A>   <B> <A NAME="tex2html588" HREF="node1.html">Contents</A></B> <BR> <BR> <!--End of Navigation Panel--> <H2><A NAME="SECTION00051000000000000000"> Return codes</A> </H2> Return codes are very useful in system scripts. You can check the return code from <I>clamscan</I> by running: <PRE> $ clamscan; echo Return code: $? </PRE> Here is the full list of return codes for <I>clamscan</I>: <BR> <P> <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 clamscan -help 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="img5.png" ALT="$^6$"> <BR> <B>55: </B> I/O error during read. <A NAME="tex2html57" HREF="footnode.html#foot945"><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="tex2html589" HREF="node27.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html585" HREF="node25.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html581" HREF="node25.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html587" 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="tex2html590" HREF="node27.html">ClamAV-certified software</A> <B> Up:</B> <A NAME="tex2html586" HREF="node25.html">Problem solving</A> <B> Previous:</B> <A NAME="tex2html582" HREF="node25.html">Problem solving</A>   <B> <A NAME="tex2html588" HREF="node1.html">Contents</A></B> <!--End of Navigation Panel--> <ADDRESS> Tomasz Kojm 2004-03-13 </ADDRESS> </BODY> </HTML>