fileput

Purpose:

Transfer a File onto a Remote Server.

Enter:

fileput <host> <userid> <password> <remote_dir> <filename> [done_event]

Where:

host

Specify the hostname of the remote server.

userid

Specify the user account on the remote server.

password

Specify the user account password.

remote_dir

Specify the destination directory to place the file. 

filename

Specify the local filename to transfer. Note: Execute fileput while in the local directory containing the file.

done_event

Optional. Specify the name of event to set when the file transfer completes. The event will be created if it does not exist.

Example:

/data/hsda > fileput ctcxsshsda1.ctg.cummins.com bo177 dt0727  /home04/cell421/data/cell421 010608AA.421 ftp_done

Put file < 010608AA.421 > successfully

In this example, fileput logins into the account bo177 with password dt0727 at the server ctcxsshsda1.ctg.cummins.com, and transfers the local file 010608AA.421 to remote directory /home04/cell421/data/cell421/. Upon completion, ftp_done will be set.

Notes:

1. You can only put one file at a time.

2. The command must be run in the directory where the file to be put is located. Change to that directory before running fileput.

3. You will need to run QNX 4 TCP/IP version 5.0 to run fileput. To check the version of your TCP/IP, do file list /usr/tcprt/current. If you are running an older version, contact the system administrator for upgrade.

See Also: