Thanks for the quick replies! Actually the FTP is working fine. What I need is a way to determine after the get/put if it was sucessful. A sample of my output may clear it up:
FTP Debug output: Net::FTP=GLOB(0x4041cfd8)<<< 220 server FTP server ready. Net::FTP=GLOB(0x4041cfd8)>>> USER weblogs Net::FTP=GLOB(0x4041cfd8)<<< 331 Password required for weblogs. Net::FTP=GLOB(0x4041cfd8)>>> PASS .... Net::FTP=GLOB(0x4041cfd8)<<< 230 User weblogs logged in. Net::FTP=GLOB(0x4041cfd8)>>> CWD /export/home/weblogs/subsidiary/ Net::FTP=GLOB(0x4041cfd8)<<< 250 CWD command successful. Net::FTP=GLOB(0x4041cfd8)>>> PORT 170,6,240,108,208,249 Net::FTP=GLOB(0x4041cfd8)<<< 200 PORT command successful. Net::FTP=GLOB(0x4041cfd8)>>> RETR subsidiary.28067.access.file.log Net::FTP=GLOB(0x4041cfd8)<<< 150 Opening ASCII mode data connection fo +r subsidiary.28067.access.file.log (40641 bytes). Net::FTP=GLOB(0x4041cfd8)<<< 226 Transfer complete. Net::FTP=GLOB(0x4041cfd8)>>> QUIT Net::FTP=GLOB(0x4041cfd8)<<< 221-You have transferred 40841 bytes in 1 + files. Net::FTP=GLOB(0x4041cfd8)<<< 221-Total traffic for this session was 41 +290 bytes in 1 transfers. Net::FTP=GLOB(0x4041cfd8)<<< 221-Thank you for using the FTP service o +n server. Net::FTP=GLOB(0x4041cfd8)<<< 221 Goodbye. End FTP debug output FTP Get Failed
See the FTP debug shows the get was sucessful, yet my logic to determine this is flawed.
if ($ftp->put($sub_log)) { print "FTP Put successful from server $ftp_server\n"; }else{ print "FTP Put Failed\n"; }

In reply to Re^2: Error Checking with Net::FTP by nickfaber
in thread Error Checking with Net::FTP by nickfaber

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.