| 
									
										
										
										
											2003-07-29 15:37:11 +00:00
										 |  |  | <!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> | 
					
						
							| 
									
										
										
										
											2004-06-14 15:45:22 +00:00
										 |  |  | <TITLE>Return codes</TITLE> | 
					
						
							|  |  |  | <META NAME="description" CONTENT="Return codes"> | 
					
						
							| 
									
										
										
										
											2003-07-29 15:37:11 +00:00
										 |  |  | <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"> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-06-14 15:45:22 +00:00
										 |  |  | <LINK REL="previous" HREF="node26.html"> | 
					
						
							|  |  |  | <LINK REL="up" HREF="node26.html"> | 
					
						
							| 
									
										
										
										
											2003-07-29 15:37:11 +00:00
										 |  |  | <LINK REL="next" HREF="node28.html"> | 
					
						
							|  |  |  | </HEAD> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <BODY > | 
					
						
							|  |  |  | <!--Navigation Panel--> | 
					
						
							| 
									
										
										
										
											2004-06-29 21:34:05 +00:00
										 |  |  | <A NAME="tex2html678" | 
					
						
							| 
									
										
										
										
											2003-07-29 15:37:11 +00:00
										 |  |  |   HREF="node28.html"> | 
					
						
							|  |  |  | <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" | 
					
						
							|  |  |  |  SRC="/usr/share/latex2html/icons/next.png"></A>  | 
					
						
							| 
									
										
										
										
											2004-06-29 21:34:05 +00:00
										 |  |  | <A NAME="tex2html674" | 
					
						
							| 
									
										
										
										
											2004-06-14 15:45:22 +00:00
										 |  |  |   HREF="node26.html"> | 
					
						
							| 
									
										
										
										
											2003-07-29 15:37:11 +00:00
										 |  |  | <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" | 
					
						
							|  |  |  |  SRC="/usr/share/latex2html/icons/up.png"></A>  | 
					
						
							| 
									
										
										
										
											2004-06-29 21:34:05 +00:00
										 |  |  | <A NAME="tex2html670" | 
					
						
							| 
									
										
										
										
											2003-07-29 15:37:11 +00:00
										 |  |  |   HREF="node26.html"> | 
					
						
							|  |  |  | <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" | 
					
						
							|  |  |  |  SRC="/usr/share/latex2html/icons/prev.png"></A>  | 
					
						
							| 
									
										
										
										
											2004-06-29 21:34:05 +00:00
										 |  |  | <A NAME="tex2html676" | 
					
						
							| 
									
										
										
										
											2003-07-29 15:37:11 +00:00
										 |  |  |   HREF="node1.html"> | 
					
						
							|  |  |  | <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" | 
					
						
							|  |  |  |  SRC="/usr/share/latex2html/icons/contents.png"></A>   | 
					
						
							|  |  |  | <BR> | 
					
						
							| 
									
										
										
										
											2004-06-29 21:34:05 +00:00
										 |  |  | <B> Next:</B> <A NAME="tex2html679" | 
					
						
							| 
									
										
										
										
											2004-06-14 15:45:22 +00:00
										 |  |  |   HREF="node28.html">Third party software</A> | 
					
						
							| 
									
										
										
										
											2004-06-29 21:34:05 +00:00
										 |  |  | <B> Up:</B> <A NAME="tex2html675" | 
					
						
							| 
									
										
										
										
											2004-06-14 15:45:22 +00:00
										 |  |  |   HREF="node26.html">Problem solving</A> | 
					
						
							| 
									
										
										
										
											2004-06-29 21:34:05 +00:00
										 |  |  | <B> Previous:</B> <A NAME="tex2html671" | 
					
						
							| 
									
										
										
										
											2004-06-14 15:45:22 +00:00
										 |  |  |   HREF="node26.html">Problem solving</A> | 
					
						
							| 
									
										
										
										
											2004-06-29 21:34:05 +00:00
										 |  |  |    <B>  <A NAME="tex2html677" | 
					
						
							| 
									
										
										
										
											2003-07-29 15:37:11 +00:00
										 |  |  |   HREF="node1.html">Contents</A></B>  | 
					
						
							|  |  |  | <BR> | 
					
						
							|  |  |  | <BR> | 
					
						
							|  |  |  | <!--End of Navigation Panel--> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-06-14 15:45:22 +00:00
										 |  |  | <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> | 
					
						
							| 
									
										
										
										
											2003-07-29 15:37:11 +00:00
										 |  |  | <P> | 
					
						
							| 
									
										
										
										
											2004-03-13 22:13:40 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2004-06-14 15:45:22 +00:00
										 |  |  |     <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="$^7$"> | 
					
						
							|  |  |  | <BR>    <B>55: </B> I/O error during read. | 
					
						
							| 
									
										
										
										
											2004-06-29 21:34:05 +00:00
										 |  |  | 	    <A NAME="tex2html80" | 
					
						
							|  |  |  |   HREF="footnode.html#foot1107"><SUP>7</SUP></A> | 
					
						
							| 
									
										
										
										
											2004-06-14 15:45:22 +00:00
										 |  |  | <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--> | 
					
						
							| 
									
										
										
										
											2004-06-29 21:34:05 +00:00
										 |  |  | <A NAME="tex2html678" | 
					
						
							| 
									
										
										
										
											2004-06-14 15:45:22 +00:00
										 |  |  |   HREF="node28.html"> | 
					
						
							|  |  |  | <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" | 
					
						
							|  |  |  |  SRC="/usr/share/latex2html/icons/next.png"></A>  | 
					
						
							| 
									
										
										
										
											2004-06-29 21:34:05 +00:00
										 |  |  | <A NAME="tex2html674" | 
					
						
							| 
									
										
										
										
											2004-06-14 15:45:22 +00:00
										 |  |  |   HREF="node26.html"> | 
					
						
							|  |  |  | <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" | 
					
						
							|  |  |  |  SRC="/usr/share/latex2html/icons/up.png"></A>  | 
					
						
							| 
									
										
										
										
											2004-06-29 21:34:05 +00:00
										 |  |  | <A NAME="tex2html670" | 
					
						
							| 
									
										
										
										
											2004-06-14 15:45:22 +00:00
										 |  |  |   HREF="node26.html"> | 
					
						
							|  |  |  | <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" | 
					
						
							|  |  |  |  SRC="/usr/share/latex2html/icons/prev.png"></A>  | 
					
						
							| 
									
										
										
										
											2004-06-29 21:34:05 +00:00
										 |  |  | <A NAME="tex2html676" | 
					
						
							| 
									
										
										
										
											2004-06-14 15:45:22 +00:00
										 |  |  |   HREF="node1.html"> | 
					
						
							|  |  |  | <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" | 
					
						
							|  |  |  |  SRC="/usr/share/latex2html/icons/contents.png"></A>   | 
					
						
							|  |  |  | <BR> | 
					
						
							| 
									
										
										
										
											2004-06-29 21:34:05 +00:00
										 |  |  | <B> Next:</B> <A NAME="tex2html679" | 
					
						
							| 
									
										
										
										
											2004-06-14 15:45:22 +00:00
										 |  |  |   HREF="node28.html">Third party software</A> | 
					
						
							| 
									
										
										
										
											2004-06-29 21:34:05 +00:00
										 |  |  | <B> Up:</B> <A NAME="tex2html675" | 
					
						
							| 
									
										
										
										
											2004-06-14 15:45:22 +00:00
										 |  |  |   HREF="node26.html">Problem solving</A> | 
					
						
							| 
									
										
										
										
											2004-06-29 21:34:05 +00:00
										 |  |  | <B> Previous:</B> <A NAME="tex2html671" | 
					
						
							| 
									
										
										
										
											2004-06-14 15:45:22 +00:00
										 |  |  |   HREF="node26.html">Problem solving</A> | 
					
						
							| 
									
										
										
										
											2004-06-29 21:34:05 +00:00
										 |  |  |    <B>  <A NAME="tex2html677" | 
					
						
							| 
									
										
										
										
											2004-06-14 15:45:22 +00:00
										 |  |  |   HREF="node1.html">Contents</A></B>  | 
					
						
							|  |  |  | <!--End of Navigation Panel--> | 
					
						
							| 
									
										
										
										
											2003-07-29 15:37:11 +00:00
										 |  |  | <ADDRESS> | 
					
						
							|  |  |  | Tomasz Kojm | 
					
						
							| 
									
										
										
										
											2004-06-29 21:34:05 +00:00
										 |  |  | 2004-06-29 | 
					
						
							| 
									
										
										
										
											2003-07-29 15:37:11 +00:00
										 |  |  | </ADDRESS> | 
					
						
							|  |  |  | </BODY> | 
					
						
							|  |  |  | </HTML> |