The put command is used to transfer a file from the local host to the remote host. Files may also be transferred to a remote host with the mput, append and send commands. A special variant of the put command, the reput command (see "reput - Send a local file with restart support"), is now available for supporting restart functionality.
put |
<local-file> [<remote-file>] |
<local-file>
Name of a POSIX or DMS file on the local host to be transferred to the remote host.
<remote-file>
Name of a file on the remote host. If the file already exists, it is overwritten or, alternatively, a new file is created after adding an appropriate suffix. This behavior is controlled by sunique. If the file does not exist, a new file is created. If the remote-file operand is omitted, the name of the local file is used (in which case the name of the local file must also comply with the file naming conventions of the remote host). By default uppercase characters in the name of the local file are converted to lowercase. However, you can disable this setting using the client command setcase (see "setcase - Uppercase/lowercase for file names in the target system").
Example
The remote host is a Unix host.
Query the names of local and remote working directories.
lpwd Local directory is :5:$TCPTEST. pwd 257 "/usr/tcptest/man/sam/nach.bs2000" is current directory.
Transfer the contents of the local file MAN.SAM.TO.SINIX.ANTON to the remote file anton. The FTP server function PORT is called implicitly.
put man.sam.nach.sinix.anton anton 200 PORT command okay. ...