to ftping a .tmp file and renaming it to .txt after successful ftp
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > to ftping a .tmp file and renaming it to .txt after successful ftp




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    to ftping a .tmp file and renaming it to .txt after successful ftp  
s


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-06-05 10:57 PM

Hi,
I am ftping a .tmp file to a third party unix server. This .tmp file
needs to be renamed as .txt file after its been ftp'ed completely.
i kind of now the whole thg except renaming.. shoulld it be a big deal?






[ Post a follow-up to this message ]



    Re: to ftping a .tmp file and renaming it to .txt after successful ftp  
joe@invalid.address


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-06-05 10:57 PM

"s" <applepie2005@gmail.com> writes:

> I am ftping a .tmp file to a third party unix server. This .tmp file
> needs to be renamed as .txt file after its been ftp'ed completely.
> i kind of now the whole thg except renaming.. shoulld it be a big
> deal?

You should be able to use "rename" to change the name. Your man page
should have this information.

ftp> rename xxx.tmp xxx.dat
350 File exists, ready for destination name
250 RNTO command successful.

The display for your client or server might be different.

Joe





[ Post a follow-up to this message ]



    Re: to ftping a .tmp file and renaming it to .txt after successful ftp  
joe@invalid.address


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-06-05 10:57 PM

Ulrich Hobelmann <u.hobelmann@web.de> writes:

> s wrote: 
>
> The ftp command can name the file, can't it?
> put foo.tmp bla.txt

That's different than what he wants to do. It transfers the file as
bla.txt, which doesn't give the receiving side an indication of when
the transfer is complete. Renaming the file after the transfer does.

Joe





[ Post a follow-up to this message ]



    Re: to ftping a .tmp file and renaming it to .txt after successful ftp  
s


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-08-05 10:52 PM

I got it. will use rename. That was simple!!!
Thanks guys.






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 07:00 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register