ClamWin Free Antivirus Forum Index
ClamWin Free Antivirus
Support and Discussion Forums
Reply to topic
Command line options request
ggeorgiev


Joined: 02 Jan 2007
Posts: 3
Reply with quote
Hey All,

I wanted to check if it will be possible to see a list of the command line options that are availble when installing Clam AV. I saw the silent install FAQ, but would like to see what other options are available that i might use for upcoming deployment. Any help will be appreciated!

Thanks in advance!
View user's profileSend private message
budtse


Joined: 14 Jan 2006
Posts: 375
Location: Belgium
Reply with quote
I guess if you are interested in automating scans, the clamscan and freshclam parameters are the most important. Clamwin is not really fit for non-gui use (except with the scheduler).

You can see the parameters by typing "clamscan.exe --help" on a command line. Same for freshclam.
View user's profileSend private message
ggeorgiev


Joined: 02 Jan 2007
Posts: 3
Reply with quote
budtse wrote:
I guess if you are interested in automating scans, the clamscan and freshclam parameters are the most important. Clamwin is not really fit for non-gui use (except with the scheduler).

You can see the parameters by typing "clamscan.exe --help" on a command line. Same for freshclam.


Hey Budtse,

I was actually more interested in the installation options of the .exe file and what they are, i.e. a list of the options when you install the program via a command line. What i need is a way to install the program without Outlook support via the command line (since the default is to install ClamWin with that option).

The reason i need that at installation time as a command line option is to script/automate the installation to a number of machines, as opposed to running a single user install at each PC.

In short, I am looking for a listing of the options on install for the .exe file and particularly interested in the 'No Outlook' option if there is one. Hope this clarifies my question a bit.

PS: as far as i read on the forum, the only way to have ClamWin without the Outlook option is to specify this at install, so that is why i was looking for the option listing. Any other options will be welcome to help in customizing the installation for multiple machines.
View user's profileSend private message
Still looking for a solution
ggeorgiev


Joined: 02 Jan 2007
Posts: 3
Reply with quote
Hey guys, I am still looking for the solution of the question i posted. If anyone can help, that would be greatly appreciated!

Thanks again!
View user's profileSend private message
budtse


Joined: 14 Jan 2006
Posts: 375
Location: Belgium
Reply with quote
Please be patient, we are not monitoring the forums all day.

The only parameters that can be used with the installer, are the standard InnoSetup installer options. I suggest you download Inno Setup from http://www.jrsoftware.org and check out the help file. I saw there is a /COMPONENTS option, you should be able to use that to specify the needed components (withouth the outlook addin).

hope this helps,
budtse
View user's profileSend private message
hankn


Joined: 20 Feb 2007
Posts: 9
Reply with quote
budtse wrote:
I guess if you are interested in automating scans, the clamscan and freshclam parameters are the most important. Clamwin is not really fit for non-gui use (except with the scheduler).

You can see the parameters by typing "clamscan.exe --help" on a command line. Same for freshclam.


Can someone explain the difference between clamscan and freshscan? I have looked at the "--help" info but I am
still at a lose to see what the difference is between the two.

Thanks.
View user's profileSend private message
budtse


Joined: 14 Jan 2006
Posts: 375
Location: Belgium
Reply with quote
ClamScan is the virus scanner, while freshclam is just an utility to update the virus definition database.
View user's profileSend private message
ClamWin command line options
GuitarBob


Joined: 09 Jul 2006
Posts: 2139
Location: USA
Reply with quote
If you are still looking for ClamWin command line options, you might look at the link below. It's not "official," and I don't know where the poster got it.

http://forum.softwareblaze.com/viewtopic.php?t=127

Regards
View user's profileSend private message
budtse


Joined: 14 Jan 2006
Posts: 375
Location: Belgium
Reply with quote
These are the clamscan.exe parameters, the same list as you get when typing
Code:
clamscan.exe -h
View user's profileSend private message
ClamWin command line (to use with cmd.exe)
eladkarako


Joined: 16 Dec 2008
Posts: 1
Location: Israel
Reply with quote
under "C:\Program Files\ClamWin\bin"
you will find clamscan.exe which is the main exe file for preforming a computer scan for viruses.
(also freshclam.exe can be used, I will explain later).

open a command line console (start->run-> type cmd and press enter, now browse to "C:\Program Files\ClamWin\bin").
after you are in the path of clamwin,

use the following switches with clamscan.exe to create your own scan process, also you may download the program
4tray minimizer, that adds a "minimize to tray" command in every window's top, that way you can create a shortcut,
and after run it, you can make it an icon near the system clock place.

switches:
clamscan.exe
Code:

                       Clam AntiVirus Scanner 0.94.1
      (C) 2002 - 2007 ClamAV Team - http://www.clamav.net/team

    --help                -h             Print this help screen
    --version             -V             Print version number
    --verbose             -v             Be verbose
    --debug                              Enable libclamav's debug messages
    --quiet                              Only output error messages
    --stdout                             Write to stdout instead of stderr
    --no-summary                         Disable summary at end of scanning
    --infected            -i             Only print infected files
    --bell                               Sound bell on virus detection
    --show-progress                      Print progress indicator for each file

    --tempdir=DIRECTORY                  Create temporary files in DIRECTORY
    --leave-temps                        Do not remove temporary files
    --database=FILE/DIR   -d FILE/DIR    Load virus database from FILE or load
                                         all .cvd and .db[2] files from DIR
    --log=FILE            -l FILE        Save scan report to FILE
    --recursive           -r             Scan subdirectories recursively
    --remove                             Remove infected files. Be careful!
    --move=DIRECTORY                     Move infected files into DIRECTORY
    --copy=DIRECTORY                     Copy infected files into DIRECTORY
    --exclude=PATT                       Don't scan file names containing PATT
    --exclude-dir=PATT                   Don't scan directories containing PATT
    --include=PATT                       Only scan file names containing PATT
    --include-dir=PATT                   Only scan directories containing PATT

    --detect-pua                         Detect Possibly Unwanted Applications
    --exclude-pua=CAT                    Skip PUA sigs of category CAT
    --include-pua=CAT                    Load PUA sigs of category CAT
    --detect-structured                  Detect structured data (SSN, Credit Card)
    --structured-ssn-format=X            SSN format (0=normal,1=stripped,2=both)
    --structured-ssn-count=N             Min SSN count to generate a detect
    --structured-cc-count=N              Min CC count to generate a detect
    --no-mail                            Disable mail file support
    --keep-mbox                          Don't delete/rename mailboxes
    --memory                             Scan loaded executable modules
    --kill                -k             Kill/Unload infected loaded modules
    --unload              -u             Unload infected modules from processes
    --no-phishing-sigs                   Disable signature-based phishing detection
    --no-phishing-scan-urls              Disable url-based phishing detection
    --heuristic-scan-precedence          Stop scanning as soon as a heuristic match is found
    --phishing-ssl                       Always block SSL mismatches in URLs (phishing module)
    --phishing-cloak                     Always block cloaked URLs (phishing module)
    --no-algorithmic                     Disable algorithmic detection
    --no-pe                              Disable PE analysis
    --no-elf                             Disable ELF support
    --no-ole2                            Disable OLE2 support
    --no-pdf                             Disable PDF support
    --no-html                            Disable HTML support
    --no-archive                         Disable archive support
    --detect-broken                      Try to detect broken executable files
    --block-encrypted                    Block encrypted archives
    --mail-follow-urls                   Download and scan URLs

    --max-filesize=#n                    Files larger than this will be skipped and assumed clean
    --max-scansize=#n                    The maximum amount of data to scan for each container file (*)
    --max-files=#n                       The maximum number of files to scan for each container file (*)
    --max-recursion=#n                   Maximum archive recursion level for container file (*)
    --max-dir-recursion=#n               Maximum directory recursion level

(*) Certain files (e.g. documents, archives, etc.) may in turn contain other
    files inside. The above options ensure safe processing of this kind of data.


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

switches:
freshclam.exe
probably checks for updates or just update state, can throw information out to console (can be catched using scripts or
any program like c/c++/c# that could hold the output (stdout) ).
Code:



                   Clam AntiVirus: freshclam  0.94.1
    (C) 2002 - 2007 ClamAV Team - http://www.clamav.net/team

    --help               -h              show help
    --version            -V              print version number and exit
    --verbose            -v              be verbose
    --debug                              enable debug messages
    --quiet                              only output error messages
    --no-warnings                        don't print and log warnings
    --stdout                             write to stdout instead of stderr

    --config-file=FILE                   read configuration from FILE.
    --log=FILE           -l FILE         log into FILE
    --no-dns                             force old non-DNS verification method
    --checks=#n          -c #n           number of checks per day, 1 <= n <= 50
    --datadir=DIRECTORY                  download new databases into DIRECTORY
    --daemon-notify[=/path/clamd.conf]   send RELOAD command to clamd
    --local-address=IP   -a IP           bind to IP for HTTP downloads
    --on-update-execute=COMMAND          execute COMMAND after successful update
    --on-error-execute=COMMAND           execute COMMAND if errors occured
    --on-outdated-execute=COMMAND        execute COMMAND when software is outdated
    --list-mirrors                       print mirrors from mirrors.dat
    --submit-stats[=/path/clamd.conf]    only submit detection statistics

Windows Service:
    --daemon                             Start in Service mode (internal)
    --install                            Install Windows Service
    --uninstall                          Uninstall Windows Service







Elad Karako.
View user's profileSend private message
Command line options request
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