Code Comments
Programming Forum and web based access to our favorite programming groups.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 Follow-up to this message"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 Follow-up to this messageUlrich 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 Follow-up to this messageI got it. will use rename. That was simple!!! Thanks guys.
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.