1Clamd client(1)                 Clam AntiVirus                 Clamd client(1)
2
3
4

NAME

6       clamdscan - scan files and directories for viruses using Clam AntiVirus
7       Daemon
8

SYNOPSIS

10       clamdscan [options] [file/directory]
11

DESCRIPTION

13       clamdscan is a clamd client which may be used as  a  clamscan  replaceā€
14       ment.  It  accepts  all the options implemented in clamscan but most of
15       them will be ignored because its  scanning  abilities  only  depend  on
16       clamd.
17

OPTIONS

19       -h, --help
20              Display help information and exit.
21
22       -V, --version
23              Print version number and exit.
24
25       -v, --verbose
26              Be verbose.
27
28       --quiet
29              Be quiet - only output error messages.
30
31       --stdout
32              Write all messages (except for libclamav output) to the standard
33              output (stdout).
34
35       --config-file=FILE
36              Read clamd settings from FILE.
37
38       -l FILE, --log=FILE
39              Save the scan report to FILE.
40
41       -f FILE, --file-list=FILE
42              Scan files listed line by line in FILE.
43
44       -m, --multiscan
45              In the multiscan mode clamd will attempt to scan  the  directory
46              contents  in  parallel  using  available threads. This option is
47              especially useful on multiprocessor and multi-core  systems.  If
48              you  pass  more  than one file or directory in the command line,
49              they are put in a queue and sent  to  clamd  individually.  This
50              means,  that single files are always scanned by a single thread.
51              Similarly, clamdscan will wait for clamd to finish  a  directory
52              scan  (performed  in  multiscan  mode) before sending request to
53              scan  another  directory.  This  option  can  be  combined  with
54              --fdpass (see below).
55
56       --remove
57              Remove infected files. Be careful.
58
59       --move=DIRECTORY
60              Move infected files into DIRECTORY.
61
62       --no-summary
63              Do not display summary at the end of scanning.
64
65       --reload
66              Request clamd to reload virus database.
67
68       --fdpass
69              Pass the file descriptor permissions to clamd. This is useful if
70              clamd is running as a  different  user  as  it  is  faster  than
71              streaming  the  file  to  clamd.  Only available if connected to
72              clamd via local(unix) socket.
73
74       --stream
75              Forces file streaming to clamd. This is generally not needed  as
76              clamdscan  detects  automatically if streaming is required. This
77              option only exists for debugging and testing  purposes,  in  all
78              other cases --fdpass is preferred.
79

EXAMPLES

81       (0) To scan a one file:
82
83              clamdscan file
84
85       (1) To scan a current working directory:
86
87              clamdscan
88
89       (2) To scan all files in /home:
90
91              clamdscan /home
92
93       (3) To scan a file when clamd is running as a different user:
94
95              clamdscan --fdpass ~/downloads
96
97       (4) To scan from standard input:
98
99              clamdscan - <file_to_scan cat file_to_scan | clamdscan -
100

RETURN CODES

102       0 : No virus found.
103
104       1 : Virus(es) found.
105
106       2 : An error occured.
107

CREDITS

109       Please check the full documentation for credits.
110

AUTHOR

112       Tomasz Kojm <tkojm@clamav.net>
113

SEE ALSO

115       clamd(8), clamd.conf(5), clamscan(1)
116
117
118
119ClamAV 0.97.3                  February 12, 2009               Clamd client(1)
Impressum