ClamWin Free Antivirus Forum Index
ClamWin Free Antivirus
Support and Discussion Forums
Reply to topic
Unload option broken?
laurens


Joined: 02 Mar 2007
Posts: 0
Reply with quote
The unload option of clamscan.exe (--unload/-u) seems to be broken since v0.90.

I assume it can be specified in combination with the kill option, under v0.88.7 it worked well, under 0.90 I get an errorcode 40;

Code:
c:\Program Files\ClamWin\bin\clamscan.exe: unrecognized option `--unload'
ERROR: Unknown option passed.
ERROR: Can't parse the command line


Error also occurres when specified with the short notation (-u).

Is this intended?

TIA,
Laurens
View user's profileSend private message
alch
Site Admin

Joined: 27 Nov 2005
Posts: 0
Reply with quote
you must have an old clamav binary or installed it from another source, clamwin's distribution of clamscan.exe version 0.90 understands --unload. Because it is the default option we would have had plenty of bug reports by now. Please check the version of clamscan.exe by passing --version parameter.

Also I suggest you uninstall clamwin, and then clean c:\program files\clamwin folder and reinstall.
View user's profileSend private message
laurens


Joined: 02 Mar 2007
Posts: 0
Reply with quote
Strange...

I checked the version and it is OK: 0.90

Code:
C:\Program Files\ClamWin\bin>clamscan.exe --version
ClamAV 0.90


Afterwards I completely removed the app (uninstall + manual delete of leftovers, in Program Files as well as Docs & Setts) and re-installed ClamWin. Still the same error.

Here is the command that fails:
Code:
"c:\Program Files\ClamWin\bin\clamscan.exe" --database="C:\Documents and Settings\All Users\.clamwin\db" --log="%REPORT%" --verbose --infected --tempdir=d:\temp --move=c:\clamav-infected --recursive --memory --kill --unload --exclude=^.*\.avi --exclude=^.*\.mpg --exclude=^.*\.mpeg --exclude-dir=^.*\\downloads\\complete --exclude-dir=^.*\\downloads\\.*temp --max-mail-recursion=20 --max-space=20M --max-ratio=0 --max-dir-recursion=200 --unrar="c:\Program Files\WinRAR\UnRAR.exe" --7zip="c:\Program Files\7-Zip\7z.exe" "%TDIR1%" "%TDIR2%" "%TDIR3%" "%TDIR4%" "%TDIR5%" "%TDIR6%"


The TDIRs are set in the batchfile the command is executed from. I use psexec to execute ClamWin (because clamscan doesn't offer a parameter to specify the priority), but I tested without psexec and it gives the same error.

Exactly the same command (same batfile) worked fine for 0.88.7 (I noticed the failure when I didn't receive scanreports anymore since I updated ClamWin last monday). When I leave out the --unload, everything is OK. I don't need to specify anyway as it is the default, but I think the error is weird.
View user's profileSend private message
alch
Site Admin

Joined: 27 Nov 2005
Posts: 0
Reply with quote
it's --kill not --unload (you have both in your command line)
View user's profileSend private message
sherpya


Joined: 22 Mar 2006
Posts: 0
Location: Italy
Reply with quote
no alch my fault, --unload should be accepted as argument, I've fixed it in svn
View user's profileSend private message
budtse


Joined: 14 Jan 2006
Posts: 0
Location: Belgium
Reply with quote
Sherpya: what would be the difference between --kill and --unload ??
View user's profileSend private message
sherpya


Joined: 22 Mar 2006
Posts: 0
Location: Italy
Reply with quote
--kill terminates infected processes, --unload unload infected libraries from processes so it's a bit dangerous
View user's profileSend private message
Unload option broken?
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