eval on a $SIG{KILL}- newbie question

2002-08-27 Thread Chad Kellerman
Hello, I am writing a script on a linux server use Net::SSH::Perl. Every once in a while the ssh connection to a remote server dies or it just can't connect. the perl module send a $SIG{KILL} to the script when ever this happens. Which isn't what I want. I am trying to put the kill in an e

RE: eval on a $SIG{KILL}- newbie question

2002-08-27 Thread Bob Showalter
> -Original Message- > From: Chad Kellerman [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, August 27, 2002 8:33 AM > To: [EMAIL PROTECTED] > Subject: eval on a $SIG{KILL}- newbie question > > > Hello, > I am writing a script on a linux server use Net::SS

Re: eval on a $SIG{KILL}- newbie question

2002-08-27 Thread Chad Kellerman
2 08:41:31 -0400 Bob Showalter <[EMAIL PROTECTED]> wrote: > > -Original Message- > > From: Chad Kellerman [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, August 27, 2002 8:33 AM > > To: [EMAIL PROTECTED] > > Subject: eval on a $SIG{KILL}- newbie question >

RE: eval on a $SIG{KILL}- newbie question

2002-08-27 Thread Bob Showalter
> -Original Message- > From: Chad Kellerman [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, August 27, 2002 8:58 AM > To: [EMAIL PROTECTED] > Subject: Re: eval on a $SIG{KILL}- newbie question > > > Bob, > Thanks for the responce. I did not realize y

Re: eval on a $SIG{KILL}- newbie question

2002-08-27 Thread Chad Kellerman
ote: > > -Original Message- > > From: Chad Kellerman [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, August 27, 2002 8:58 AM > > To: [EMAIL PROTECTED] > > Subject: Re: eval on a $SIG{KILL}- newbie question > > > > > > Bob, > > Thanks f

RE: eval on a $SIG{KILL}- newbie question

2002-08-27 Thread Bob Showalter
> -Original Message- > From: Chad Kellerman [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, August 27, 2002 1:46 PM > To: [EMAIL PROTECTED] > Subject: Re: eval on a $SIG{KILL}- newbie question > > > Sorry everybody, > >I have been trying to work on this al

Re: eval on a $SIG{KILL}- newbie question

2002-08-27 Thread david
Chad Kellerman wrote: > Sorry everybody, > >I have been trying to work on this all day but nothing... > > IF a perl module uses: > connect($sock, sockaddr_in($rport, $raddr)) > or die "Can't connect to $ssh->{host}, port $rport: $!"; > > How do I catch the die() in an eval statemen

Re: eval on a $SIG{KILL}- newbie question

2002-08-28 Thread Michael Lamertz
I think Bob's theory 1 fits. The die is never called. You put an alarm handler into your program which is set for 10 seconds. I suppose the timeout for the ssh module is more like 30 seconds, so the alarm catches first. On Tue, Aug 27, 2002 at 01:46:20PM -0400, Chad Kellerman wrote: > > How do