#21 Using file include/exclude patterns by name

David Brown

It is generally more important to scan for viruses in
executable files than all data files. Rather than having a
single file include/exclude setup, I think it would be very
useful to be able to define named sets (with some, such
as "all files" and "executables" coming as pre-defined
patterns), and to be able to choose the set to use when
scanning manually or with the scheduler. Thus you could
set up a nightly scan of executables, and a weekly scan
of all files, for example.

Also, would it be possible to control clam scanning on
other pc's in some way? I am in the middle of setting up
clam on a server (old NT4 server), and can easily get it
to schedule regular scans, but it would be great if I could
use the same convenient ClamWin interface for ad hoc
scans, controlled from my own pc.


  • alch

    Logged In: YES

    groups of file extesions will be available in the next
    release (hopefully, or one after next).

    I didn't quite understand your second question, do you mean
    scanning files on another computer? If so then yes you can
    scan a file on a mapped network share.


  • David Brown
    David Brown

    Logged In: YES

    With the network question, I was thinking in terms of running
    the scanner locally on the server, but viewing and controlling it
    from a workstation. Running the scanner over a network share
    works well enough (especially using the windows "secret" c$,
    d$, etc. shares), but obviously requires a lot of network
    bandwidth, as well as processor capacity on the workstation.
    I do scans in this way at the momement, although I'm now
    switching over to doing regular scans locally on the server.
    What would be ideal for me, however, would be a menu item in
    the ClamWin dialog labelled "connect to server...", which would
    connect to a clamwin service running on the server, and let
    me easily start and view a scan running locally on the server.
    I gather ClamWin is written in Python with wxPython (my
    choice too these days) - it should be practical to have it
    running as a service (as far as I can see, it starts on logon,
    rather than as a service?), and the python library gives you a
    head start for setting up a network link. The effect would be
    that, instead of calling clamscan locally, it would send the
    command to the server's clamwin service. I suppose the same
    effect could be achieved by running clamscan over ssh, but an
    integrated system would be easier to install and get running.

  • Logged In: NO

    Wouldn't VNC be just as easy?

  • David Brown
    David Brown

    Logged In: YES

    VNC is certainly useful - it saves me a lot of leg work when
    administrating machines, especially from my home pc. But a
    lighter, dedicated connection would be easier to work with and
    easier to install (here I am thinking of others - I already have
    vnc server, sshd, cygwin, and a pile of other junk that is
    needed to make windows look like a real os). It would also
    work as a service, so there would be no need to log in locally
    (or vnc-remotely) to work with the scanner.

  • alch

    Logged In: YES

    I would say this is currently beyond the scope for clamwin.
    I am struggling for time trying to balance clamwin and other
    commitments. David, if you are experienced python/c++
    developer your contribution would be most welcome. Drop me a
    note if you are interseted.

  • David Brown
    David Brown

    Logged In: YES

    I've not done much c++ (mostly I work with embedded
    systems programming, in C or assembly on small
    microcontrollers), and my python programming has been mostly
    restricted to small utility programs so far. But I do intend to
    have a look through the source code for the clamwin interface
    - it is much nicer than the wxPython dialogs I have made so
    far! I'm off on holiday tomorrow, so I won't get a chance to
    even look at anything for a few weeks, but after that, maybe I
    can play around with it. Service programming and network
    interfaces is something I have read about rather than
    programmed, but it might be fun to learn. I'll let you know if I
    get something working that might actually be useful :-)

    I fully appreciate your prioritising - I don't see this as a major
    feature, and others have requested features that will make a
    much bigger difference to clamwin.