If I understand you correctly, you can run either of the first 2 scripts separately, and they work OK. It is only when you try to run them using the third script that you get the error message. Is this correct?
  1. Your first 2 scripts will not cause system to return 'Failed' if the commands themselves fail. You print out the results of the ->cmd operation, but as long as the command is able to be executed, then Net::Telnet is happy. You should parse the output, and die if it is not what you expect
  2. As was previously mentioned, does the 'reset' in the first script make it impossible for the second script to work for some period of time?
  3. I assume the 'Download Unsuccessful' message is something that can be printed as a result of the second scripts load call. Is it possible to pass debug or verbose options to this command to give more details?

fnord


In reply to Re: Net:::Telnet - two consecutive connection by Illuminatus
in thread Net:::Telnet - two consecutive connection by perldesire

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.