Skip Menu |

This queue is for tickets about the Net-SSH-Perl CPAN distribution.

Report information
The Basics
Id: 70180
Status: rejected
Priority: 0/
Queue: Net-SSH-Perl

People
Owner: Nobody in particular
Requestors: keegan.holley [...] sungard.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: cannot connect
Date: Tue, 9 Aug 2011 19:52:55 -0400
To: bug-Net-SSH-Perl [...] rt.cpan.org
From: Keegan Holley <keegan.holley [...] sungard.com>
Gents, I'm not sure if this is a bug, or just an annoyance, but if I parse through a list of IP's and one of them is not reachable there is no way to keep my program from dying because there is a "die" in the module itself. Is there anyway to write in some error handling or at lease terminate that particular socket and write to stderr. There is a write to stderr on the portion that runs the command but not on the initial open. Keegan Holley ▪ Network Architect ▪ SunGard Availability Services ▪ 401 North Broad St. Philadelphia, PA 19108 ▪ (215) 446-1242 ▪ *keegan.holley@sungard.com* <keegan.holley@sungard.com> Keeping People and Information Connected® ▪ *http://www.availability.sungard.com/ * <http://availability.sungard.com/> *Think before you print* CONFIDENTIALITY: This e-mail (including any attachments) may contain confidential, proprietary and privileged information, and unauthorized disclosure or use is prohibited. If you received this e-mail in error, please notify the sender and delete this e-mail from your system.
Subject: Re: [rt.cpan.org #70180] AutoReply: cannot connect
Date: Tue, 9 Aug 2011 20:18:09 -0400
To: bug-Net-SSH-Perl [...] rt.cpan.org
From: Keegan Holley <keegan.holley [...] sungard.com>
btw I get the following error * Can't connect to 1.2.3.4, port 22: Network is unreachable at /usr/lib/perl5/site_perl/5.8.8/Net/SSH/Perl.pm line 205. * Keegan Holley ▪ Network Architect ▪ SunGard Availability Services ▪ 401 North Broad St. Philadelphia, PA 19108 ▪ (215) 446-1242 ▪ *keegan.holley@sungard.com* <keegan.holley@sungard.com> Keeping People and Information Connected® ▪ *http://www.availability.sungard.com/ * <http://availability.sungard.com/> *Think before you print* CONFIDENTIALITY: This e-mail (including any attachments) may contain confidential, proprietary and privileged information, and unauthorized disclosure or use is prohibited. If you received this e-mail in error, please notify the sender and delete this e-mail from your system. 2011/8/9 Bugs in Net-SSH-Perl via RT <bug-Net-SSH-Perl@rt.cpan.org> Show quoted text
> > Greetings, > > This message has been automatically generated in response to the > creation of a trouble ticket regarding: > "cannot connect", > a summary of which appears below. > > There is no need to reply to this message right now. Your ticket has been > assigned an ID of [rt.cpan.org #70180]. Your ticket is accessible > on the web at: > > https://rt.cpan.org/Ticket/Display.html?id=70180 > > Please include the string: > > [rt.cpan.org #70180] > > in the subject line of all future correspondence about this issue. To do > so, > you may reply to this message. > > Thank you, > bug-Net-SSH-Perl@rt.cpan.org > > ------------------------------------------------------------------------- > Gents, > > I'm not sure if this is a bug, or just an annoyance, but if I parse through > a list of IP's and one of them is not reachable there is no way to keep my > program from dying because there is a "die" in the module itself. Is there > anyway to write in some error handling or at lease terminate that > particular > socket and write to stderr. There is a write to stderr on the portion that > runs the command but not on the initial open. > > > Keegan Holley ▪ Network Architect ▪ SunGard Availability Services ▪ 401 > North Broad St. Philadelphia, PA 19108 ▪ (215) 446-1242 ▪ > *keegan.holley@sungard.com* <keegan.holley@sungard.com> Keeping People and > Information Connected® ▪ *http://www.availability.sungard.com/ > * <http://availability.sungard.com/> *Think before you print* > > CONFIDENTIALITY: This e-mail (including any attachments) may contain > confidential, proprietary and privileged information, and unauthorized > disclosure or use is prohibited. If you received this e-mail in error, > please notify the sender and delete this e-mail from your system. > > >
On Tue Aug 09 19:53:47 2011, keegan.holley@sungard.com wrote: Show quoted text
> Gents, > > I'm not sure if this is a bug, or just an annoyance, but if I parse
through Show quoted text
> a list of IP's and one of them is not reachable there is no way to keep my > program from dying because there is a "die" in the module itself.
Please use 'eval' to catch a 'die': perl -e 'eval { die "Bummer!" }; if ($@) { print "Catched a die: $@\n" };' You can also use modules from CPAN, e.g. https://metacpan.org/module/Try::Tiny Kind regards, Steffen -- Steffen Schwigon <ss5@renormalist.net> Dresden Perl Mongers <http://dresden-pm.org/>