Operating System - HP-UX
1819621 Members
3357 Online
109604 Solutions
New Discussion юеВ

FTP not working in binary mode.

 
GIRIJA SWAIN
Advisor

FTP not working in binary mode.

Hi,

Recently I have upgraded my HP-UX servers from 11.00 to 11.11. I am using socks FTP. After OS upgrade "/opt/socks/bin/ftp" in binary mode not working. It is sendig the file but with 0 bites. If I send using ASCII mode, it works. Also if I use /usr/bin/ftp, it works for both mode.

While sendid file in Binary mode using socks ftp, it gives following error:
--------------------
ftp> pyt xyz
200 PORT command successful
150 Opening BINARY mode data connection for user1
sendfile: Invalid argument
266 Transfer complete.
--------------------------
GSS-PALO-ALTO
2 REPLIES 2
Denver Osborn
Honored Contributor

Re: FTP not working in binary mode.

Have a look at this arpa patch for 11i.

PHNE_27063:
FTP is unable to put or mput files of any size due to EINVAL
errno 22 "sendfile: Invalid argument" when ftp attempts to
call senfile64() to transmit the files.


Hope it helps,
-denver
GIRIJA SWAIN
Advisor

Re: FTP not working in binary mode.

The Patch PHNE_27063 is there. I find the solution through hit and try. We need to socksify the telnet and ftp again after upgrade. The command is:
"/opy/socks/bin/socksify -d /usr/local/bin -s /usr/bin ftp"

It workes after that.
GSS-PALO-ALTO