clamscan command line

I’m trying to fix a script in another topic. One line scans the linux directories. The other scans the windows directories. So, I tested both on the command line.

clamscan -r --exclude-dir=windows --exclude-dir=/sys --exclude-dir=/proc --exclude-dir=/dev --move=virus-vault

This works fine.

>clamscan -r --include-dir=windows --move=virus-vault

/: Excluded

----------- SCAN SUMMARY -----------
Known viruses: 829265
Engine version: 0.96.1
Scanned directories: 0
Scanned files: 0
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 4.966 sec (0 m 4 s)

“virus-vault” exists. What’s wrong with the command line?

On 2010-09-15 22:36, lord valarian wrote:

> “virus-vault” exists. What’s wrong with the command line?

What’s the problem? Perhaps I’m think tonight, but I don’t see…


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” GM (Elessar))

It should recursively scan the windows directory. It scans no files. There is a newer version of clamscan. Online-update hasn’t notified me of one.

On 2010-10-06 23:36, lord valarian wrote:
>
> Carlos E. R.;2223263 Wrote:
>> On 2010-09-15 22:36, lord valarian wrote:
>>
>>> “virus-vault” exists. What’s wrong with the command line?
>>
>> What’s the problem? Perhaps I’m think tonight, but I don’t see…

>
> It should recursively scan the windows directory. It scans no files.


clamscan -r --include-dir=windows --move=virus-vault

Is that the command line you are using? You are not giving a path to scan.

> There is a newer version of clamscan. Online-update hasn’t notified me
> of one.

No hurry :-p


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)


clamscan -r --include-dir=windows --move=virus-vault

The include command should do that. The previous command works fine. How do I setup the correct command line?

You used relative path to windows directory. Is that correct?

On 2010-10-09 03:06, lord valarian wrote:
>
> Code:
> --------------------
>
> clamscan -r --include-dir=windows --move=virus-vault
>
> --------------------
>
>
> The include command should do that.

No, it doesn’t. It might work if the directory “windows” is hanging from the pwd.

> The previous command works fine.

You said the other day it does not work.

> How do I setup the correct command line?

I would simply do:


clamscan -r /windows


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)


clamscan -r /windows

It works. :slight_smile: Thanks.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)[/QUOTE]