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
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
|
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.