Hi Monks,

I am using Net::SSH::Perl module in a CGI script to connect to list of hosts and check for few processes and display the status on the webpage.

But while connecting to one of the host in the list which is down then the script is not exited and not checked for the other host. Getting the following error on exit:
Can't connect to abc, port 22: No route to host at /usr/lib/perl5/site +_perl/5.8.8/Net/SSH/Perl.pm line 205
Is there any way to execute the script even if connection to one of the host is not established (i.e instead of script getting exited in middle it should process other hosts and show the status of host as down)

In reply to Help on Net::SSH::Perl module by Anonymous Monk

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.