1827751 Members
3014 Online
109969 Solutions
New Discussion

Re: ftp problem

 
SOLVED
Go to solution
Lokesh_2
Esteemed Contributor

ftp problem

Hi,

I have files called a.b;1 & a.b;2 on my VMS machine.
I did ftp to VMS from my Window NT pc, and when I try to get a.b;1, I get the a.b;2 . How can I get a.b;1 ?

Here is the relevant output:

_______________________________

ftp> ls a.b
200 PORT command successful.
150 Opening data connection for a.b (10.50.26.167,2185)
A.B;2
A.B;1
226 NLST Directory transfer complete
14 bytes received in 0.00 seconds (14000.00 Kbytes/sec)
ftp> get a.b;1
200 PORT command successful.
150 Opening data connection for DSA200:[ABCD]A.B;2 (10.50.26.167,2186) (20 bytes
)
226 Transfer complete.
19 bytes received in 0.00 seconds (19000.00 Kbytes/sec)
ftp>
_______________________________________

Thanks & regards,
Lokesh Jain

What would you do with your life if you knew you could not fail?
12 REPLIES 12
Lokesh_2
Esteemed Contributor

Re: ftp problem

Here is a link which states similar problem:

http://h71000.www7.hp.com/wizard/wiz_6063.html

Thanks & regards,
Lokesh
What would you do with your life if you knew you could not fail?
Ian Miller.
Honored Contributor

Re: ftp problem

I suspect a ftp client problem. Do you have an alternative client?
____________________
Purely Personal Opinion
Lokesh_2
Esteemed Contributor

Re: ftp problem

Hi Ian,

No, I do not have an alternate FTP client. I am using Microsoft Windows NT 4 .

Best regards,
Lokesh
What would you do with your life if you knew you could not fail?
Peter Hofman
Frequent Advisor
Solution

Re: ftp problem

do it like this:

get a.b;1 a_1.b
get a.b;2 a_2.b

That should work
Lokesh_2
Esteemed Contributor

Re: ftp problem

Thanks Peter,

Its working.

Cheers,
Lokesh
What would you do with your life if you knew you could not fail?
Uwe Zessin
Honored Contributor

Re: ftp problem

I'm curious - what happens when you try:

ftp> get a.b.1

??
.
Peter Hofman
Frequent Advisor

Re: ftp problem

Hi Uwe,

was this really a question?
Anyway, I just tried, and it gets the right file :-)

If you specify

> get a.b.1

the file on your NT machine will also named a.b.1

Cheers, Peter
Uwe Zessin
Honored Contributor

Re: ftp problem

Yes, I am part of a small group of people who end questions with one or more interrogation marks.
.
Antoniov.
Honored Contributor

Re: ftp problem

Hi Uwe,
ftp get has 2 parameters: input file (mandatory) and outfile (same of input file, if ommitted).
So the command
get a.b;1 a_1.b
means get a.b;1 from source host and put into target host with a_1.b name; the real problem is NT can't manage file with semicolon.

Antonio Vigliotti
Antonio Maria Vigliotti
Uwe Zessin
Honored Contributor

Re: ftp problem

Hello Antonio,

thank you for your lesson in FTP ;-)

From Lokesh's question it is apparent that some component is stripping off the version number. I don't know his exact environment, so I was wondering if the old 'trick' of using "." instead of ";" for the version number separator did work in his environment.

(I know it is not really a "trick", but legitimate syntax on OpenVMS)
.
Wim Van den Wyngaert
Honored Contributor

Re: ftp problem

Also starting from ftp on NT to VMS :
>put file file;1
will always overwrite version 1
and is usefull for big files

and funny
>put file file;-1
will create file_-1

>put file file;+1
will create file__1

Wim
Wim
Terry Yeomans
Frequent Advisor

Re: ftp problem

I believe the reason behind this problem is that FTP does not copy multiple file versions. THey have to be unique (as in DOS).
Yours Terry.