fileget

Purpose:

Fetch one or more files from a remote server using FTP or SFTP.

Enter:

fileget <host> <userid> <password> <remote_dir> <files> [done_event]

Where:

host

Specify the hostname of the remote server.

userid

Specify the user account on the remote server.

password

Specify the password for the specified user account.

remote_dir

Specify the source directory for the file(s). 

files

Specify a filename or file pattern. You can use a wild character such as * in the filename pattern.

done_event

Optional. Specify the event name to set upon completion of the file transfer. 

Example:

fileget example.com user123 pass456 /remote/path pattern* completion_event

Notes:

The destination for downloaded files is the current directory. Ensure you are in the desired directory before running.

See Also: