NAME
File::VirusScan::Engine::Command - File::VirusScan::Engine class for command-line scanners
SYNOPSIS
use File::VirusScan::Engine::Command;
@ISA = qw( File::VirusScan::Engine::Command );
DESCRIPTION
File::VirusScan::Engine::Command provides a base class and utility methods for implementing File::VirusScan support for commandline virus scanners
CLASS METHODS
new ( $config )
Constructor. $config is a hashref with the following required values:
- command
-
The full path to the commandline scanner to use for this engine.
INSTANCE METHODS
scan ( $path )
Generic scan() method. Takes a pathname to scan. Returns a File::VirusScan::Result object which can be queried for status.
Generally, this will be implemented by the subclass.
UTILITY METHODS FOR SUBCLASSES
_run_commandline_scanner ( $command, $match )
Runs the command given by $command. Returns the exit status of that command, and a string containing any lines of output that match the regular expression $match.
DEPENDENCIES
IO::File, File::VirusScan::Engine
AUTHOR
Dave O'Neill (dmo@roaringpenguin.com)
LICENCE AND COPYRIGHT
Copyright (c) 2008 Roaring Penguin Software, Inc.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2, or (at your option) any later version.