fileget

Purpose:

Get a file or files from a remote server.

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 where the file(s) to get reside. If the file is located at the login directory, remote_dir should be . (dot), and for the root directory, it should be / (slash).

files

Specify a filename or file pattern. You can use wild character such as * at the BEGINNING and/or END in the filename pattern.

done_event

Optional. Specify the event name to set when the file transfer is done. If the event name does not exist, fileget will create it. 

Example:

In the following example, fileget logs in into the account bo177 with password dt0727 at the server ctcxsshsda1.ctg.cummins.com, and transfers all files that match 010608A?.421 under remote directory /home04/cell421/data/cell421/ to local directory /data/hsda/. Upon completion, ftp_done will be set.

/data/hsda > fileget ctcxsshsda1.ctg.cummins.com bo177 dt0727 /home04/cell421/data/cell421 “010608A*” ftp_done FTP file `010608AA.421` successfully FTP file ‘010608AB.421’ successfully FTP file ‘010608AC.421’ successfully FTP file ‘010608AD.421’ successfully …FTP file ‘010608AX.421’ successfully 24 files transferred successfully

Notes:

1. The destination of the file(s) is the current directory from where this command is issued. Change to that directory if necessary before running fileget.

2. Run QNX 4 TCP/IP version 5.0. To check the version of your TCP/IP, do file list /usr/tcprt/current. If running an older version, contact the system administrator for upgrade.

See Also: