.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.0102 (Pod::Simple 3.45) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "SIMPLEFTP 1" .TH SIMPLEFTP 1 2025-03-29 "INN 2.7.4" "InterNetNews Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME simpleftp \- Rudimentary FTP and HTTP(S) client .SH SYNOPSIS .IX Header "SYNOPSIS" \&\fBsimpleftp\fR \fIurl\fR [...] .SH DESCRIPTION .IX Header "DESCRIPTION" \&\fBsimpleftp\fR 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., is stored as \fIactive.gz\fR in the current directory. .PP The script properly understands usernames, passwords and ports specified as follows: .PP .Vb 1 \& ftp://user:password@host:port/path/file .Ve .PP \&\fBsimpleftp\fR has a hard-coded timeout of 30 seconds. It uses binary mode and passive mode for FTP data transfers. .PP It exits with status 0 on success. Otherwise, the exit status is the number of failed transfers. .PP INN only uses \fBsimpleftp\fR when running \fBactsyncd\fR. If \fBwget\fR (or also \&\fBncftpget\fR or \fBncftp\fR for the sole scope of FTP) is found at configure time, then it will be used instead of this script. .SH BUGS .IX Header "BUGS" \&\fBsimpleftp\fR is an extremely poor substitute for more complete programs like the freely available \fBwget\fR utility you are encouraged to use instead. It was written only to provide elementary support in INN for non-interactive fetching of the files in or without requiring administrators to install yet another package. Its shortcomings as a general purpose program are too numerous to mention, but one that stands out is that downloaded files by \fBsimpleftp\fR override existing files with the same name in the local directory. .PP HTTP support requires the \f(CW\*(C`HTTP::Tiny\*(C'\fR Perl module, only installed in Perl 5.14.0 and above as a Perl core module. Besides, the \f(CW\*(C`IO::Socket::SSL\*(C'\fR and \&\f(CW\*(C`Net::SSLeay\*(C'\fR Perl modules are required for HTTPS support. In case they are not installed, \fBsimpleftp\fR cannot handle these protocols. .SH HISTORY .IX Header "HISTORY" Tossed off by David C Lawrence for InterNetNews. Rewritten to use \f(CW\*(C`HTTP::Tiny\*(C'\fR and \f(CW\*(C`Net::FTP\*(C'\fR by Julien Élie. .SH "SEE ALSO" .IX Header "SEE ALSO" actsync(8).