Rex::Commands::Download(3pm)

Rex::Commands::Download3pm

Download remote files

Usage

 # sftp
 task "download", "remoteserver", sub {
   download "/remote/file", "localfile";
 };
 # http
 task "download2", sub {
   download "http://server/remote/file";
 };

Overview

With this module you can download a remotefile via sftp, http and ftp from a host to your local computer.

Version <= 1.0: All these functions will not be reported.

Exported functions

download($remote, [$local])

Perform a download. If no local file is specified it will download the file to the current directory.

 task "download", "remoteserver", sub {
   download "/remote/file", "localfile";
 };
 task "download", sub {
   download "http://www.rexify.org/index.html", "localfile.html";
 };

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

From rex 1.16.0-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.