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.
IO::File, File::VirusScan::Engine
Dave O'Neill (dmo@roaringpenguin.com)
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.
To install File::VirusScan, copy and paste the appropriate command in to your terminal.
cpanm
cpanm File::VirusScan
CPAN shell
perl -MCPAN -e shell install File::VirusScan
For more information on module installation, please visit the detailed CPAN module installation guide.