Hi there,

Both points were very helpful - particularly 1) which explains the odd "Bad File Descriptor" message which had me tearing my virtual (I don't have any) hair out.

As for point 2), yes, I was having problems with files not uploading completely and yet get() would not return with an error, hence the size check. I know already that every file being downloaded is gzipped, therefore I specify the transfer to be binary mode, in which case, the size of the file reported by the ftp server remotely will match (on a successful transfer) the file downloaded.

However, what did enlighten me was the failure of our back-up ISDN link to the remote server (we were using ftp over a VPN over the Internet). It transpires that the intructions were being sent over the Internet, and yet the data was being received via the ISDN link.

Yesterday, the ftp client would connect but could not receive any data. Now I need wave a large stick at whoever configured the firewalls.

I imagine this is where the problem of the short files is coming from - the ISDN linking is either timing out or falling over. Most irritating.

Thanks again,

-Gregor-

-- Gregor Anderson, Edinburgh. http://www.deletia.org/


In reply to Re: Re: Net::FTP Bad File Descriptor - Much Weirdness by hibernian
in thread Net::FTP Bad File Descriptor - Much Weirdness by hibernian

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.