19
19
<LINK REL="STYLESHEET" HREF="clamdoc.css">
21
<LINK REL="next" HREF="node20.html">
22
21
<LINK REL="previous" HREF="node18.html">
23
<LINK REL="up" HREF="node15.html">
22
<LINK REL="up" HREF="node18.html">
24
23
<LINK REL="next" HREF="node20.html">
29
28
<DIV CLASS="navigation"><!--Navigation Panel-->
31
30
HREF="node20.html">
32
31
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A>
35
34
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A>
37
36
HREF="node18.html">
38
37
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A>
41
40
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>
43
<B> Next:</B> <A NAME="tex2html432"
44
HREF="node20.html">Setting up auto-updating</A>
45
<B> Up:</B> <A NAME="tex2html428"
46
HREF="node15.html">Configuration</A>
47
<B> Previous:</B> <A NAME="tex2html422"
48
HREF="node18.html">clamav-milter</A>
49
<B> <A NAME="tex2html430"
42
<B> Next:</B> <A NAME="tex2html443"
43
HREF="node20.html">clamav-milter</A>
44
<B> Up:</B> <A NAME="tex2html439"
45
HREF="node18.html">clamd</A>
46
<B> Previous:</B> <A NAME="tex2html435"
47
HREF="node18.html">clamd</A>
48
<B> <A NAME="tex2html441"
50
49
HREF="node1.html">Contents</A></B>
53
52
<!--End of Navigation Panel-->
55
<H2><A NAME="SECTION00053000000000000000">
58
Try to scan recursively the source directory:
60
$ clamscan -r -l scan.txt clamav-x.yz
62
It should find some test files in the clamav-x.yz/test directory.
63
The scan result will be saved in the <code>scan.txt</code> log file
65
HREF="footnode.html#foot177"><SUP><SPAN CLASS="arabic">4</SPAN></SUP></A>.
66
To test <code>clamd</code>, start it and use <code>clamdscan</code> (or instead connect
67
directly to its socket and run the SCAN command):
69
$ clamdscan -l scan.txt clamav-x.yz
71
Please note that the scanned files must be accessible by the user running
72
<code>clamd</code> or you will get an error.
54
<H3><A NAME="SECTION00051100000000000000">
55
On-access scanning</A>
57
One of the interesting features of <code>clamd</code> is on-access scanning
58
based on the Dazuko module, available from <TT><A NAME="tex2html13"
59
HREF="http://dazuko.org/">http://dazuko.org/</A></TT>.
60
<SPAN CLASS="textbf">This module is not required to run clamd - furthermore, you
61
shouldn't run Dazuko on production systems</SPAN>. At the moment Dazuko is
62
avaliable for Linux and FreeBSD, but the following information only covers
65
$ tar zxpvf dazuko-a.b.c.tar.gz
69
$ make dazuko-smp (for smp kernels)
72
# cp dazuko.o /lib/modules/`uname -r`/misc
75
Depending on your Linux distribution you may need to add a "dazuko" entry to
76
<SPAN CLASS="textit">/etc/modules</SPAN> or run the module during system's startup by adding
80
to some startup file. You must also create a new device:
82
$ cat /proc/devices | grep dazuko
84
$ su -c "mknod -m 600 /dev/dazuko c 254 0"
86
Now configure Clamuko in <code>clamd.conf</code> and read the <A HREF="node27.html#clamuko">5.3</A>