NET::FTP not doing line end translation in ASCII mode.

From: giles (gdavidson_at_striva.com)
Date: 02/26/04


Date: Thu, 26 Feb 2004 17:22:31 -0000

Hi,

I am putting a script together using NET::FTP, however it is not doing line
end translation when FTPing a file from Windows to UNIX (various).

Debug output suggests that it is trying to do the right thing (my comments):

Net::FTP=GLOB(0x1e05924)<<< 230 User lw logged in.
Net::FTP=GLOB(0x1e05924)>>> PORT 10,7,16,30,8,109
Net::FTP=GLOB(0x1e05924)<<< 200 PORT command successful.
Net::FTP=GLOB(0x1e05924)>>> NLST /dtl/lw/ftptest
Net::FTP=GLOB(0x1e05924)<<< 150 Opening ASCII mode data connection for file
list
.
Net::FTP=GLOB(0x1e05924)<<< 226 Transfer complete.
Net::FTP=GLOB(0x1e05924)>>> CWD /dtl/lw/ftptest
Net::FTP=GLOB(0x1e05924)<<< 250 CWD command successful.
Net::FTP=GLOB(0x1e05924)>>> PORT 10,7,16,30,8,110
Net::FTP=GLOB(0x1e05924)<<< 200 PORT command successful.
Net::FTP=GLOB(0x1e05924)>>> NLST /dtl/lw/ftptest
Net::FTP=GLOB(0x1e05924)<<< 150 Opening ASCII mode data connection for file
list
.
Net::FTP=GLOB(0x1e05924)<<< 226 Transfer complete.
# set the transfer type.
Net::FTP=GLOB(0x1e05924)>>> TYPE A
Net::FTP=GLOB(0x1e05924)<<< 200 Type set to A.
# Transfer the file
Net::FTP=GLOB(0x1e05924)>>> PORT 10,7,16,30,8,111
Net::FTP=GLOB(0x1e05924)<<< 200 PORT command successful.
Net::FTP=GLOB(0x1e05924)>>> STOR dtlbld
Net::FTP=GLOB(0x1e05924)<<< 150 Opening ASCII mode data connection for
dtlbld.
Net::FTP=GLOB(0x1e05924)<<< 226 Transfer complete.
#File platform_building/unix/dtlbld (A) transferred to dtlbld (dtlbld)
Net::FTP=GLOB(0x1e05924)>>> SITE chmod 775 dtlbld
Net::FTP=GLOB(0x1e05924)<<< 200 CHMOD command successful.
Net::FTP=GLOB(0x1e05924)>>> PORT 10,7,16,30,8,112
Net::FTP=GLOB(0x1e05924)<<< 200 PORT command successful.
Net::FTP=GLOB(0x1e05924)>>> NLST /dtl/lw/ftptest
Net::FTP=GLOB(0x1e05924)<<< 150 Opening ASCII mode data connection for file
list
.
Net::FTP=GLOB(0x1e05924)<<< 226 Transfer complete.
Transfer complete
Net::FTP=GLOB(0x1e05924)>>> QUIT
Net::FTP=GLOB(0x1e05924)<<< 221 Goodbye.

Any ideas greatfully received!

Regards
Giles