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

  • Follow


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?

0
Reply applepie2005 (1) 4/6/2005 6:37:13 PM

s wrote:
> 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?

The ftp command can name the file, can't it?
put foo.tmp bla.txt
0
Reply Ulrich 4/6/2005 7:07:20 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
0
Reply joe 4/6/2005 7:08:30 PM

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

> s wrote:
> > 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?
> 
> 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
0
Reply joe 4/6/2005 7:10:07 PM

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

0
Reply s 4/8/2005 7:13:46 PM

4 Replies
467 Views

(page loaded in 0.152 seconds)

Similiar Articles:






7/20/2012 6:03:32 PM


Reply: