Comment 2 for bug 943713

Revision history for this message
Nobuto Murata (nobuto) wrote :

Attached patch adds a quotation for "--log" option, this will fix the issue.

==========
$ crontab -l
0 1 * * * /usr/bin/clamscan --exclude-dir=.thunderbird --exclude-dir=.mozilla-thunderbird --exclude-dir=.evolution --exclude-dir=Mail --exclude-dir=kmail --detect-pua -i -r /home/ubuntu --exclude-dir=/home/ubuntu/.clamtk/viruses --log="$HOME/.clamtk/history/$(date +\%b-\%d-\%Y).log" 2>/dev/null # clamtk-scan
==========

==========
$ /usr/bin/clamscan --exclude-dir=.thunderbird --exclude-dir=.mozilla-thunderbird --exclude-dir=.evolution --exclude-dir=Mail --exclude-dir=kmail --detect-pua -i -r /home/ubuntu --exclude-dir=/home/ubuntu/.clamtk/viruses --log="$HOME/.clamtk/history/$(date +\%b-\%d-\%Y).log"
----------- SCAN SUMMARY -----------
Known viruses: 1153191
Engine version: 0.97.3
Scanned directories: 107
Scanned files: 119
Infected files: 0
Data scanned: 13.89 MB
Data read: 42.04 MB (ratio 0.33:1)
Time: 4.400 sec (0 m 4 s)
==========