468b9e48 |
<!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> |
c7217226 |
<TITLE>Output format</TITLE>
<META NAME="description" CONTENT="Output format"> |
468b9e48 |
<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">
|
c7217226 |
<LINK REL="next" HREF="node25.html"> |
468b9e48 |
<LINK REL="previous" HREF="node23.html"> |
c7217226 |
<LINK REL="up" HREF="node18.html"> |
468b9e48 |
<LINK REL="next" HREF="node25.html">
</HEAD>
<BODY >
<!--Navigation Panel--> |
8b243778 |
<A NAME="tex2html645" |
468b9e48 |
HREF="node25.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
SRC="/usr/share/latex2html/icons/next.png"></A> |
8b243778 |
<A NAME="tex2html641" |
c7217226 |
HREF="node18.html"> |
468b9e48 |
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
SRC="/usr/share/latex2html/icons/up.png"></A> |
8b243778 |
<A NAME="tex2html635" |
468b9e48 |
HREF="node23.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
SRC="/usr/share/latex2html/icons/prev.png"></A> |
8b243778 |
<A NAME="tex2html643" |
468b9e48 |
HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
SRC="/usr/share/latex2html/icons/contents.png"></A>
<BR> |
8b243778 |
<B> Next:</B> <A NAME="tex2html646" |
c7217226 |
HREF="node25.html">Signature Tool</A> |
8b243778 |
<B> Up:</B> <A NAME="tex2html642" |
c7217226 |
HREF="node18.html">Usage</A> |
8b243778 |
<B> Previous:</B> <A NAME="tex2html636" |
c7217226 |
HREF="node23.html">Mail files</A> |
8b243778 |
  <B> <A NAME="tex2html644" |
468b9e48 |
HREF="node1.html">Contents</A></B>
<BR>
<BR>
<!--End of Navigation Panel-->
|
c7217226 |
<H2><A NAME="SECTION00046000000000000000">
Output format</A> |
468b9e48 |
</H2> |
c7217226 |
<I>clamd</I> uses a clamscan compatible output format: |
a0faaedf |
<PRE> |
c7217226 |
zolw@Wierszokleta:~$ telnet localhost 3310
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
SCAN /home/zolw/infected
/home/zolw/infected/sobre.com: W32.Magistr.B FOUND
Connection closed by foreign host. |
a0faaedf |
</PRE> |
c7217226 |
In the <B>SCAN</B> mode it closes the connection when first virus
is found. In the case of archives the output is exactly the same as
with normal files because archive support is transparent: |
a0faaedf |
<PRE> |
c7217226 |
SCAN /home/zolw/Clam/test/test2.zip
/home/zolw/Clam/test/test2.zip: ClamAV-Test-Signature FOUND |
a0faaedf |
</PRE> |
c7217226 |
<B>CONTSCAN</B> displays all infected files found.
<BR>
Error messages are printed in the following format: |
a0faaedf |
<PRE> |
c7217226 |
SCAN /no/such/file
/no/such/file: Can't stat() the file ERROR
</PRE>
and they can be easily parsed. |
69b44259 |
|
c7217226 |
<P>
<I>clamscan</I> writes all messages to <B>stderr</B> (only help is
written to <B>stdout</B> by default). You may want to redirect it to
<B>stdout</B> - this is handled with <code>--stdout</code>. An example
of the clamscan output is:
<PRE>
/tmp/test/removal-tool.exe: Worm.Sober FOUND
/tmp/test/md5.o: OK
/tmp/test/blob.c: OK
/tmp/test/message.c: OK
/tmp/test/error.hta: VBS.Inor.D FOUND |
a0faaedf |
</PRE> |
c7217226 |
When a virus is found its name is printed between the <code>filename:</code> and
<code>FOUND</code> strings. If a virus is found in an archive that has been
extracted with an external unpacker it's noticed with
<code>Infected Archive</code>. "Infected Archives" are not counted as infected
files - only files within them are. Notice the difference with built-in
unarchiver - extraction process is realized transparently by libclamav
and clamscan doesn't know which concrete file is infected - just marks
whole archives as infected. |
468b9e48 |
<P> |
69b44259 |
<HR>
<!--Navigation Panel--> |
8b243778 |
<A NAME="tex2html645" |
69b44259 |
HREF="node25.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
SRC="/usr/share/latex2html/icons/next.png"></A> |
8b243778 |
<A NAME="tex2html641" |
c7217226 |
HREF="node18.html"> |
69b44259 |
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
SRC="/usr/share/latex2html/icons/up.png"></A> |
8b243778 |
<A NAME="tex2html635" |
69b44259 |
HREF="node23.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
SRC="/usr/share/latex2html/icons/prev.png"></A> |
8b243778 |
<A NAME="tex2html643" |
69b44259 |
HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
SRC="/usr/share/latex2html/icons/contents.png"></A>
<BR> |
8b243778 |
<B> Next:</B> <A NAME="tex2html646" |
c7217226 |
HREF="node25.html">Signature Tool</A> |
8b243778 |
<B> Up:</B> <A NAME="tex2html642" |
c7217226 |
HREF="node18.html">Usage</A> |
8b243778 |
<B> Previous:</B> <A NAME="tex2html636" |
c7217226 |
HREF="node23.html">Mail files</A> |
8b243778 |
  <B> <A NAME="tex2html644" |
69b44259 |
HREF="node1.html">Contents</A></B>
<!--End of Navigation Panel--> |
468b9e48 |
<ADDRESS>
Tomasz Kojm |
8b243778 |
2004-06-29 |
468b9e48 |
</ADDRESS>
</BODY>
</HTML> |