LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Transfer file using a temporary name and rename when successful (https://www.linuxquestions.org/questions/linux-newbie-8/transfer-file-using-a-temporary-name-and-rename-when-successful-4175480819/)

taruvinga 10-15-2013 03:31 AM

Transfer file using a temporary name and rename when successful
 
Dear all,

How can I do an FTP transfer for a file using a temporary name and then rename the file once the file has been successfully transferred

Thanks,
Taruvinga

Madhu Desai 10-15-2013 05:40 AM

Code:

ftp> put original_file renamed_file
File will gets renamed only if copy is successfull.

taruvinga 10-18-2013 04:43 AM

Thank you mddesai it worked.

Taruvinga


All times are GMT -5. The time now is 11:12 PM.