SIMPLEFTP(1)
β¨ SIMPLEFTP(1) β¨
okay bestie, welcome to simpleftp β a genuinely tiny little FTP and HTTP(S) client that lives in the InterNetNews documentation family π«Ά
πΈ SYNOPSIS πΈ
simpleftp url [...]
π DESCRIPTION π
So simpleftp is a Perl script β yes, Perl, she's vintage but she works β and she does one thing: fetch files in a batch-oriented fashion. Very "no thoughts, just downloads" energy π
You hand her one or more FTP or HTTP(S) URLs on the command line, and she retrieves the file(s) from the remote FTP or web server(s), dropping them in the current directory with the same basename as on the remote. Like, for example, https://downloads.isc.org/pub/usenet/CONFIG/active.gz gets stored as active.gz in the current directory. Slay, same name, no drama β¨
She's not confused by credentials either β she properly understands usernames, passwords and ports specified like this:
ftp://user:password@host:port/path/file
A few things to know about her personality π:
- She has a hard-coded timeout of 30 seconds. Not 29, not 31, don't ask.
- She uses binary mode and passive mode for FTP data transfers. iconic behavior, honestly.
- She exits with status
0on success. Otherwise, the exit status is the number of failed transfers β so if three things flop, you get3. very "count your losses" of her π
Fun lil fact: 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'll be used instead of this script. so she's like, the understudy π¦
π BUGS π
ngl bestie, this is the section where I have to be real with you.
simpleftp is an extremely poor substitute for more complete programs like the freely available wget utility, which you are encouraged to use instead. like, actually encouraged. the manpage says so. π«Ά
She was written only to provide elementary support in INN for non-interactive fetching of the files in https://downloads.isc.org/pub/pgpcontrol/ or https://downloads.isc.org/pub/usenet/CONFIG/ without requiring administrators to install yet another package. That's it. That's the whole assignment.
Her shortcomings as a general purpose program are too numerous to mention, but one that stands out is that downloaded files by simpleftp override existing files with the same name in the local directory. so yeah. she will absolutely steamroll your file. no cap. watch out ππ
Also, technical tea β:
- HTTP support requires the
"HTTP::Tiny"Perl module, only installed in Perl 5.14.0 and above as a Perl core module. - Besides, the
"IO::Socket::SSL"and"Net::SSLeay"Perl modules are required for HTTPS support. - In case they are not installed,
simpleftpcannot handle these protocols. periodt. π
π HISTORY π
Tossed off by David C Lawrence <tale@isc.org> for InterNetNews. Rewritten to use "HTTP::Tiny" and "Net::FTP" by Julien Γlie.
π SEE ALSO π
actsync(8) β go read it, bestie π
mwah π this has been SIMPLEFTP(1) from the InterNetNews crew β brought to you by INN 2.7.4, dated 2025-03-29. go forth and maybe just use wget fr fr π¦β¨
π¦ where this page comes from
- arch rolling: inn 2.7.4-4 Β· ISC
- epel 10: inn 2.7.4-5.el10_3 Β· ISC AND BSD-3-Clause AND BSD-4-Clause AND FSFAP AND (GPL-1.0-or-later OR Artistic-1.0-Perl) AND GPL-3.0-or-later WITH Bison-exception-2.2 AND LicenseRef-Fedora-Public-Domain AND MIT AND NTP
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms