Dear Monks,

I am having an issue when using the get method of the Net::FTPSSL module.

When I am calling the get method I am doing this:

if ( $ftps->get("$file","$file") ) { $ftps->delete($file); print MYLOG a-time-stamp-func() . " $file was downloaded from host\ +n"; } else { exception handling; }
>

What happens is that in my log the line that gets written is rather munged for each file that gets downloaded. The word downloaded will appear then a portion of the timestamp and then perhaps the file name. When I use the Net::FTP module with the same type of if statement this does not happen, only with the Net::FTPSSL. Reading the module I can see that the get method creates an instance of IO::Handle tied to Net::SSLeay::Handle.

Not really a major issue but a bit of a nuisance. Any thoughts on what might be causing this?

Update:

I just wasn't looking closely enough at this. The file names have \r in them after chomping. When I tail the log it looks munged, doing more or vi on it looks ok but with the ^M's. The tail is excluding everything on the line up to and including the \r.

zow

In reply to Net::FTPSSL->get() issue by zow

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.