NAME
check-updates.pl - F-Prot Antivirus Updater
SYNTAX
check-updates.pl [options]
DESCRIPTION
check-updates.pl
is a perl program which checks for virus signature updates over the
Internet. If there are new virus signature files, it will download
and install them.
REPORTING OPTIONS
- -cron
-
This feature is useful when running this script in a cron-job. When
this option is used, the perl script will only print to STDOUT when the
virus signature files have been updated or when an error occurs. (Traditionally
the cron daemon only sends e-mail when it receives something on STDOUT/STDERR
from a program it is running.)
- -quiet
-
This option will cause the perl script only to report errors. In other words the
user will not be notified every time a new virus signature file has been downloaded
and installed.
CONFIGURATION OPTIONS
- -proxy-server=http://proxy.name:portnumber
-
This option will cause the perl script to use the 'proxy.name' as an HTTP proxy server
and the supplied portnumber for all HTTP communications.
- -proxy-cache-enable
-
This option will cause the perl script to use cached pages related to update information
on proxy servers (this is disabled by default).
- -proxy-username=username
-
This option will cause the perl script to use 'username' as a username when authenticating
to a proxy server (this option is only needed if the HTTP proxy server requires authentication).
- -proxy-password=password
-
This option is used with the -proxy-username and will cause 'password' to be used when the
perl script authenticates with the HTTP proxy.
- -proxy-ftp-server=ftpproxy.name
-
This option will cause the perl script to use the supplied hostname 'ftpproxy.name' as an
FTP proxy for FTP communications.
- -proxy-ftp-username=ftpusername
-
This option will cause the perl script to use the supplied username 'ftpusername' when authenticating
with the FTP proxy (this option should only be used if the FTP proxy server requires authentication).
- -proxy-ftp-password=ftppassword
-
This option is used with the -ftp-proxy-username and will cause the 'ftppassword' to be used
when the perl script authenticates with the FTP proxy.
- -proxy-ftp-type=number
-
This option should only be used if you are using an FTP proxy which requires user authentication.
There are currently a few different types of FTP proxies which do not behave the same.
Please consult the perl documentation for Net::Config
http://cpan.uwinnipeg.ca/htdocs/libnet/Net/Config.html
- -ftp-no-passive
-
This option disables the use of passive ftp connections
(which is enabled by default).
CRON JOB EXAMPLES
To run this script as a cron-job, it is necessary to create a crontab
entry similar to the following example.
Here is an example of a crontab entry which runs the
check-updates.pl script twice a day: 04:27 and 16:27:
27 4,16 * * * /usr/local/f-prot/tools/check-updates.pl -cron
Here is the same example with proxy authentication included:
27 4,16 * * * /usr/local/f-prot/tools/check-updates.pl -cron -proxy-server=http://localhost:3128 -proxy-username=myusername -proxy-password=mypassword
(consult the crontab manual page, this format may differ between
versions)
REQUIREMENTS
This script was written for perl 5.8 and it is dependant on the
following perl modules:
NET::FTP
IO::File
HTTP::Request
HTTP::Response
LWP::UserAgent
and one external program: 'unzip' (the directory
of the unzip binary needs to be in the $PATH environment variable.
To install the required modules, you can use the following from the
CPAN shell:
To enter the CPAN shell:
perl -MCPAN -e shell
To install modules:
cpan> install Bundle::libnet
cpan> install Bundle::LWP
cpan> install IO
cpan> quit
More detailed information regarding CPAN can be found at
http://www.perl.com/CPAN/.
LICENSING
For information about licensing, see the LICENSE file that comes with F-Prot Antivirus.
CONTACT INFORMATION
Please direct any feedback to:
http://www.f-prot.com/support/contact_support.html
Updates will be advertised on: http://www.f-prot.com/