LinuxQuestions.org
Register a domain and help support LQ
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, 04: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, 06:40 AM   #2
mddnix
Member
 
Registered: Mar 2013
Location: Bengaluru, India
Distribution: Redhat, Arch, Ubuntu
Posts: 498

Rep: Reputation: 137Reputation: 137
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, 05:43 AM   #3
taruvinga
LQ Newbie
 
Registered: Jun 2008
Posts: 6
Blog Entries: 1

Original Poster
Rep: Reputation: 0
Thank you mddesai it worked.

Taruvinga
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 12:39 PM
rsync - how to not re-transfer after folder rename ? rbalaa Linux - Software 1 06-26-2010 02:37 AM
Sony PSP file transfer inaccurate transfer progress stratotak Linux - Newbie 3 01-02-2010 04:49 AM
scp hangs at the end of a successful transfer dscholl Red Hat 1 07-17-2009 07:27 PM
copy last 10000+ lines of large text file to a temporary file emilyg Linux - Newbie 3 06-24-2009 03:43 PM


All times are GMT -5. The time now is 10:23 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration