[ next ] [ language reference ] [ table of contents ]
Connects to an FTP server. Optionally can retrieve a file from that server.
req | name | type | description |
---|---|---|---|
Y | path | expression | The directory path to change to after logging in. You can specify a complete file path; if you do the file up to ‘size’ will be downloaded. |
N | userid | expression | The userid to use when logging into the FTP server |
N | password | expression | The password to use when logging into the FTP server |
N | size | expression | The maximum amount (in bytes) of the file to download if a file was specified. |
ftp “/” “anonymous” “joe@garage.com”
Connects to the FTP server identified in the last dns command. The user “anonymous” and password “joe@garage.com” are supplied if the FTP server asks for authentication.
ftp “pub/readme.txt” “fzappa” “joe@garage.com” “50”
Connects to the FTP server identified in the last dns command. The user “fzappa” and password “joe@garage.com” are supplied if the FTP server asks for authentication. The first 50 bytes of the file “pub/readme.txt” are downloaded and stored in $CONTENT.
Alertra Script Language: Language Reference