simpleftp1
Rudimentary ftp and http(s) client
Usage
simpleftp url
[]
Overview
simpleftp is a Perl script that provides basic support for fetching files in a batch oriented fashion. It takes one or more FTP or HTTP(S) URLs on the command line. The file(s) will be retrieved from the remote FTP or web server(s) and placed in the current directory with the same basename as on the remote; e.g., <https://downloads.isc.org/pub/usenet/CONFIG/active.gz> is stored as active.gz in the current directory.
The script properly understands usernames, passwords and ports specified as follows:
ftp://user:password@host:port/path/file
simpleftp has a hard-coded timeout of 30 seconds. It uses binary mode and passive mode for FTP data transfers.
It exits with status 0 on success. Otherwise, the exit status is the number of failed transfers.
INN only uses simpleftp when running actsyncd. If wget (or also ncftpget or ncftp for the sole scope of FTP) is found at configure time, then it will be used instead of this script.