ClamWin Free Antivirus Forum Index
ClamWin Free Antivirus
Support and Discussion Forums
Reply to topic
SEND MAIL WITH CLAMSCAN COMMAND LINE
pascalvp


Joined: 15 Apr 2010
Posts: 0
Location: france
Reply with quote
traduction google / translate with google

Bonjour

J’utilise actuellement Clamwin sur des serveurs multi utilisateurs (TSE)
L’interface g?©n?re un profil par utilisateur, ce n’est pas tr?s pratique je sais que la version actuelle n’est pas pr?©vu pour fonctionner dans un tel environnement, alors je contourne en utilisant Clamwin en mode Standalone
J’ai cr?©?© un script pour effectuer un scan quotidien avec une maj de la base de donn?©es.
Il y a beaucoup de directive en ligne de commandes toutes ne sont pas document?©es,
Je voulais savoir si il existe une documentation des directives de la ligne de commande je souhaite savoir si il existe une possibilit?© d’utiliser les options d’envoi de mails en ligne de commande
Je mets une copie du script pour ceux que ?§a int?©resse
Merci

Hello

I currently use Clamwin on multi-user servers (TSE)
The interface generates a profile for each user, it is not very practical I know that the current version is not designed to operate in such an environment, so I bypassed using Clamwin Standalone mode
I created a script to do a scan every day with a maj in the database.
There are many command line directive, not all are documented,
I wanted to know if there is a documentation of directives on the command line I want to know if there is a possibility to use the option of sending mail from the command line
I put a copy of the script for those interested

Thanks you

@rem "CREATION DES VARIABLES ET DES LOGS"
@SET SESO=C:\EXPLOIT
@call %SESO%\SCRPT\DATETIME.CMD
if not exist %SESO%\CLAMWIN\TMP\nul md %SESO%\CLAMWIN\TMP
SET TMPCLAM=%SESO%\CLAMWIN\TMP
SET DBCLAM=%SESO%\CLAMWIN\DB
SET QTCLAM=%SESO%\CLAMWIN\QUARANTINE
@rem SET DRVSCAN="C:\\" "D:\\" exemple
SET DRVSCAN="%systemdrive%\\"
SET DBLOGS=%SESO%\CLAMWIN\LOG\ClamScanLog%DATETIME%.log
SET CNFFRESH="%ProgramFiles%\ClamWin\Bin\freshclam.conf"
SET LOGCLAM=%SESO%\CLAMWIN\LOG

@Cscript %SESO%\SCRPT\PURGELOG.VBS //NOLOGO %SESO%\CLAMWIN\LOG 2
"%ProgramFiles%\ClamWin\Bin\freshclam.exe" --datadir=%DBCLAM% --config-file=%CNFFRESH% --log=%LOGCLAM%\ClamUpdateLog.txt

"%ProgramFiles%\ClamWin\bin\clamscan.exe" --tempdir "%TMPCLAM%" --keep-mbox --stdout --database="%DBCLAM%" --log="%DBLOGS%" --infected --max-files=500 --max-scansize=200M --max-recursion=50 --max-filesize=100M --show-progress --move="%QTCLAM%" --recursive --exclude="[^\]*\.dbx$" --exclude="[^\]*\.tbb$" --exclude="[^\]*\.pst$" --exclude="[^\]*\.dat$" --exclude="[^\]*\.log$" --exclude="[^\]*\.evt$" --exclude="[^\]*\.nsf$" --exclude="[^\]*\.ntf$" --exclude="[^\]*\.chm$" --exclude="[^\]*\.mdb$" --exclude="[^\]*\.ldb$" --exclude="[^\]*\.mdf$" --exclude="[^\]*\.ldf$" --memory --kill %DRVSCAN%
View user's profileSend private message
SEND MAIL WITH CLAMSCAN 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