ClamWin Free Antivirus Forum Index
ClamWin Free Antivirus
Support and Discussion Forums
Reply to topic
script a virus scan
mmancini


Joined: 07 Jan 2007
Posts: 0
Reply with quote
I would like to know the command line to run a manual scan so I can script it using Kaseya. Thanks!
View user's profileSend private message
drgoa.r


Joined: 20 Nov 2006
Posts: 0
Location: Bulgaria
Reply with quote
run "clamscan --help" from command line
it will show you all command line options
View user's profileSend private message
mmancini


Joined: 07 Jan 2007
Posts: 0
Reply with quote
If I run clamscan --quiet I get the msg
"LiBClamAV Error: cli_loaddb(): No supported database files found in . ERROR: unable to open file or directory."

I don't see a .cvd or .db file in clamwin fodler
View user's profileSend private message
drgoa.r


Joined: 20 Nov 2006
Posts: 0
Location: Bulgaria
Reply with quote
mmancini wrote:
I don't see a .cvd or .db file in clamwin fodler

there is a command line option to specify where your database is.
you can view your path in Preferences>File Locations
View user's profileSend private message
mmancini


Joined: 07 Jan 2007
Posts: 0
Reply with quote
got it! thanks! but the freshclam is giving a parse error at line 1
View user's profileSend private message
drgoa.r


Joined: 20 Nov 2006
Posts: 0
Location: Bulgaria
Reply with quote
freshclam.exe has --help option too Smile
--datadir=DIRECTORY is probably the command you need

but if you run all time from command line - then probably the better choice is to use sherpya's binaries, without the python gui from clamwin: https://oss.netfarm.it/clamav/
View user's profileSend private message
mmancini


Joined: 07 Jan 2007
Posts: 0
Reply with quote
I see the help and I see the manual but there are some differences and errors.

I'm running: freshclam --quiet --datadir="c:\documents and settings\all users\.clamwin\db" --config-file="program files\clamwin\bin\clamwin.conf"

but I get parse error at line 1: unknown option and can't parse the config file
View user's profileSend private message
drgoa.r


Joined: 20 Nov 2006
Posts: 0
Location: Bulgaria
Reply with quote
clamwin.conf is configuration file for clamwin, not for freshclam.
also the location you choose pointing to default config file.
actual clamwin config file is located here:
"c:\documents and settings\USERPROFILE\application data\.clamwin\clamwin.conf"
try it, but I doubt you will have success with it too.
you need freshclam.conf, try sherpya's binaries, they are the same which clamwin uses, but without gui and dedicated to command line usage only.
View user's profileSend private message
sourceminer


Joined: 05 Jan 2007
Posts: 0
Reply with quote
You know I already have the script posted on the Kaseya Forums right?
View user's profileSend private message
I do now!
mmancini


Joined: 07 Jan 2007
Posts: 0
Reply with quote
I dig it up there! Thanks!
View user's profileSend private message
script a virus scan
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic