Sorry for being non specific. In the meantime I have created a simplified version of the script that
produces the same error. Here it goes:
#!/app/ecb/perl/bin/perl -w
use Net::FTP;
$FTP_HOST="machine";
$FTP_USER="ftp";
$FTP_PASSWORD="ftp";
$FTP_SRC_FILENAME="pub/src_file";
$FTP_DST_FILENAME="./results";
$ftp= new Net::FTP( ${FTP_HOST} );
$ftp->login( ${FTP_USER}, ${FTP_PASSWORD} );
$ftp->binary;
$ftp->get( ${FTP_SRC_FILENAME}, ${FTP_DST_FILENAME});
$ftp->quit;
# End of script
Machine that I'm ftping from:
SunOS 4.1.3_U1 1 sun4m
Machine to which transfer goes:
SunOS 5.7 Generic_111437-01 sun4u sparc SUNW,UltraSPARC-IIi-cEngine
And yes, I.pm handles binary transfers. Actually exactly
the same error occurs for ascii transfers, but in A.pm.
The line at which it fails in both cases reads:
$blksize = $size if $size > $blksize;
And the perl version (from perl -V) is:
perl5 (revision 5.0 version 6 subversion 0)
The result files are perfect.
topsik |