check-updates.pl - F-Prot Antivirus Updater
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.
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.)
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
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.
This option will cause the perl script to use cached pages related to update information
on proxy servers (this is disabled by default).
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).
This option is used with the -proxy-username and will cause 'password' to be used when the
perl script authenticates with the HTTP proxy.
This option will cause the perl script to use the supplied hostname 'ftpproxy.name' as an
FTP proxy for FTP communications.
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).
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.
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
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
This script was written for perl 5.8 and it is dependant on the
following perl modules:
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
To enter the CPAN shell:
perl -MCPAN -e shell
To install modules:
cpan> install Bundle::libnet
cpan> install Bundle::LWP
cpan> install IO
More detailed information regarding CPAN can be found at
For information about licensing, see the LICENSE file that comes with F-Prot Antivirus.
Please direct any feedback to:
Updates will be advertised on: http://www.f-prot.com/