- CLASS METHODS
- INSTANCE METHODS
- UTILITY METHODS FOR SUBCLASSES
- LICENCE AND COPYRIGHT
File::VirusScan::Engine::Command - File::VirusScan::Engine class for command-line scanners
use File::VirusScan::Engine::Command; @ISA = qw( File::VirusScan::Engine::Command );
File::VirusScan::Engine::Command provides a base class and utility methods for implementing File::VirusScan support for commandline virus scanners
Constructor. $config is a hashref with the following required values:
The full path to the commandline scanner to use for this engine.
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.
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.
Dave O'Neill (firstname.lastname@example.org)
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.