ClamWin Free Antivirus Forum Index
ClamWin Free Antivirus
Support and Discussion Forums
Reply to topic
Running Freshclam.exe from command line.
aceinc


Joined: 03 Feb 2006
Posts: 2
Reply with quote
Is there a way of running c:\program files\freshclam.exe from the command line? When I do I get the error;

ERROR: Can't parse the config file /usr/local/etc/clamd.conf

I installed ClamAV for windows on the same computer, and that version of freshclam.exe works. It seems to have a more robust installation of cygwin.

The computer that this runs on is mainly a lights out computer that is a mail server. The mail server likes clamwin for scanning messages for viri. Since nobody stays logged in, I can't use the normal scheduler that runs in the system tray, and I can't find a service to do the updates, so I was hoping to use freshclam.exe.

So my main problem is unattended updates, and I will take the best solution for that problem, or how to configure the environment so that freshclam.exe runs.

Paul
View user's profileSend private message
alch
Site Admin

Joined: 27 Nov 2005
Posts: 1751
Reply with quote
do a search for freshclam in this forum and you will find this:
http://forums.clamwin.com/viewtopic.php?t=68
View user's profileSend private message
Re: Running Freshclam.exe from command line.
adrian


Joined: 16 Mar 2007
Posts: 2
Reply with quote
aceinc wrote:
Is there a way of running c:\program files\freshclam.exe from the command line? When I do I get the error;

ERROR: Can't parse the config file /usr/local/etc/clamd.conf

I installed ClamAV for windows on the same computer, and that version of freshclam.exe works. It seems to have a more robust installation of cygwin.

The computer that this runs on is mainly a lights out computer that is a mail server. The mail server likes clamwin for scanning messages for viri. Since nobody stays logged in, I can't use the normal scheduler that runs in the system tray, and I can't find a service to do the updates, so I was hoping to use freshclam.exe.

So my main problem is unattended updates, and I will take the best solution for that problem, or how to configure the environment so that freshclam.exe runs.

Paul


Create TEXT file.
Copy the script BELOW (Page 15 of 27: manual_en.pdf) and paste into TEXT file:

Code:
# URL of server where database updates are to be downloaded from
# If this option is given multiple times, each will be tried in
# the order given until an update is successfully downloaded
#MAKE SYU
DatabaseDirectory "c:/Documents and Settings/All Users/.clamwin/db/"
DatabaseMirror database.clamav.net
# Number of times to try each mirror before moving to the next one
MaxAttempts 3


Rename WHOLE file INCLUDING EXTENSION as "clamd.conf"
Duplicate "clamd.conf" but rename as "freshclam.conf" PUT IN SAME FOLDER
BOTH files (clamd/freshclam) serves as a backup Configuration file for each other. Either one existing will enable command prompt update.
Run "freshclam.exe" and DOWNLOAD
View user's profileSend private message
Re: Running Freshclam.exe from command line.
adrian


Joined: 16 Mar 2007
Posts: 2
Reply with quote
aceinc wrote:
Is there a way of running c:\program files\freshclam.exe from the command line? When I do I get the error;

ERROR: Can't parse the config file /usr/local/etc/clamd.conf

I installed ClamAV for windows on the same computer, and that version of freshclam.exe works. It seems to have a more robust installation of cygwin.

The computer that this runs on is mainly a lights out computer that is a mail server. The mail server likes clamwin for scanning messages for viri. Since nobody stays logged in, I can't use the normal scheduler that runs in the system tray, and I can't find a service to do the updates, so I was hoping to use freshclam.exe.

So my main problem is unattended updates, and I will take the best solution for that problem, or how to configure the environment so that freshclam.exe runs.

Paul


The error message exist because you did not create "Freshclam.conf" file and fill it with the script from the ClamWin Manual, and then store it into the same folder.

Either you mispelled "FreshClam.conf" to example "FreshClaim.conf" like I did due to my legal background. Smile OR you did not create it at all.
View user's profileSend private message
Running Freshclam.exe from command line.
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