in reply to Net:::Telnet - two consecutive connection

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

Replies are listed 'Best First'.
Re^2: Net:::Telnet - two consecutive connection
by perldesire (Scribe) on Sep 30, 2009 at 09:02 UTC
    Yes, I just put a sleep for few seconds in between two scripts calling, now it is working perfectly.