1832934 Members
2907 Online
110048 Solutions
New Discussion

Re: FTP problem

 
Starrynight
Advisor

FTP problem

Hi everybody

Seems like I'm having strange problems very frequently nowadays....
Maybe you can help me with this one too !
I make an external ftp through a proxy server from a hp-ux machine (to a hp-ux also) and I can transfer every files I want except the .zip ones. It seems that the problem is that the p is exchanged to _ and I can't figure out why.
I also tried to do the same thing to another LAN external site and the same thing happens.
Here's the commands I execute:

ftp> dir
200 Port command successful.
150 Opening data connection for directory list.
-rw-r--r-- 1 ftp ftp 6 Feb 24 15:11 aa.aa_
-rw-r--r-- 1 ftp ftp 81437601 Jan 24 11:40 DB_COMDUNS_200501.zip
-rw-r--r-- 1 ftp ftp 1080442 Jan 24 11:50 DB_NOVOS_200501.zip
-rw-r--r-- 1 ftp ftp 43326849 Jan 31 11:52 DB_REMANESCENTE_200501.zip
-rw-r--r-- 1 ftp ftp 14468016 Jan 25 15:06 DB_SEMDUNS_200501.zip
226 Transfer ok
ftp> get DB_COMDUNS_200501.zip
200 Port command successful.
550 'DB_COMDUNS_200501.zi_' : No Such File.
ftp> mget *
mget aa.aa_? n
mget DB_COMDUNS_200501.zip? y
200 Port command successful.
550 'DB_COMDUNS_200501.zi_' : No Such File.
mget DB_NOVOS_200501.zip? n
mget DB_REMANESCENTE_200501.zip? n
mget DB_SEMDUNS_200501.zip? n
ftp>

Really I don't know what to think about this...
Maybe someone can help.
Thanks in advance.

SN
System administrator
2 REPLIES 2
RAC_1
Honored Contributor

Re: FTP problem

ftp may experience problems if there are any special chars in the file name. From unix prompt fo ls -1b or ll|vis to check the file names. check if it has any special chars in it or not.

Anil
There is no substitute to HARDWORK
Stephen Keane
Honored Contributor

Re: FTP problem

It might also be a case of filename truncation. Both the examples you quoted are exactly 21 characters long (including the '_')

If you can get aa.aa_ OK, then I suspect it's a filename truncation problem. Is your ftp patched to latest levels?

The other thing to try is

ftp> prompt y
ftp> mget DB_*