Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

to ftping a .tmp file and renaming it to .txt after successful ftp
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?


Report this thread to moderator Post Follow-up to this message
Old Post
s
04-07-05 01:58 AM


Re: to ftping a .tmp file and renaming it to .txt after successful ftp
"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

Report this thread to moderator Post Follow-up to this message
Old Post
joe@invalid.address
04-07-05 01:58 AM


Re: to ftping a .tmp file and renaming it to .txt after successful ftp
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

Report this thread to moderator Post Follow-up to this message
Old Post
joe@invalid.address
04-07-05 01:58 AM


Re: to ftping a .tmp file and renaming it to .txt after successful ftp
I got it. will use rename. That was simple!!!
Thanks guys.


Report this thread to moderator Post Follow-up to this message
Old Post
s
04-09-05 08:58 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Unix Programming archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:01 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.