<< back to sysax.com Product page

3.9. Send One File

The put Copies a local file to the remote computer using the current file transfer type. See also mput, which can copy multiple files. This command followed by the parameters are 'local-file and remote-file'. The local-file specifies the local file to copy and the remote-file specifies the name to use on the remote computer. If not specified, the file is given the local-file name.

The Syntax is

Exhibit 3.14. Syntax of "put" command

 
 put local-file [remote-file]  


The example is

Exhibit 3.15. Example of "put" command


  ftp> put

 Local file msg.txt
 Remote file dbg4.txt
 200 Command okay
 150 File status okay; about to open data connection
 226 Closing data connection
 ftp: 140 bytes sent in 0.00Seconds 140000.00Kbytes/sec.

 ftp>