LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-15-2013, 03:31 AM   #1
taruvinga
LQ Newbie
 
Registered: Jun 2008
Posts: 6
Blog Entries: 1

Rep: Reputation: 0
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
 
Old 10-15-2013, 05:40 AM   #2
Madhu Desai
Member
 
Registered: Mar 2013
Distribution: Rocky, Fedora, Ubuntu
Posts: 541

Rep: Reputation: 153Reputation: 153
Code:
ftp> put original_file renamed_file
File will gets renamed only if copy is successfull.
 
1 members found this post helpful.
Old 10-18-2013, 04:43 AM   #3
taruvinga
LQ Newbie
 
Registered: Jun 2008
Posts: 6

Original Poster
Blog Entries: 1

Rep: Reputation: 0
Thank you mddesai it worked.

Taruvinga
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slow single file transfer, fast multiple transfer Manzano Linux - Networking 6 08-06-2013 11:39 AM
rsync - how to not re-transfer after folder rename ? rbalaa Linux - Software 1 06-26-2010 01:37 AM
Sony PSP file transfer inaccurate transfer progress stratotak Linux - Newbie 3 01-02-2010 03:49 AM
scp hangs at the end of a successful transfer dscholl Red Hat 1 07-17-2009 06:27 PM
copy last 10000+ lines of large text file to a temporary file emilyg Linux - Newbie 3 06-24-2009 02:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration