1Rex::Commands::DownloadU(s3e)r Contributed Perl DocumentaRteixo:n:Commands::Download(3)
2
3
4

NAME

6       Rex::Commands::Download - Download remote files
7

DESCRIPTION

9       With this module you can download a remotefile via sftp, http and ftp
10       from a host to your local computer.
11
12       Version <= 1.0: All these functions will not be reported.
13

SYNOPSIS

15        # sftp
16        task "download", "remoteserver", sub {
17          download "/remote/file", "localfile";
18        };
19
20        # http
21        task "download2", sub {
22          download "http://server/remote/file";
23        };
24

EXPORTED FUNCTIONS

26   download($remote, [$local])
27       Perform a download. If no local file is specified it will download the
28       file to the current directory.
29
30        task "download", "remoteserver", sub {
31          download "/remote/file", "localfile";
32        };
33
34        task "download", sub {
35          download "http://www.rexify.org/index.html", "localfile.html";
36        };
37
38
39
40perl v5.32.1                      2021-03-06        Rex::Commands::Download(3)
Impressum