Skip Menu |

This queue is for tickets about the Net-Appliance-Session CPAN distribution.

Report information
The Basics
Id: 62048
Status: resolved
Priority: 0/
Queue: Net-Appliance-Session

People
Owner: Nobody in particular
Requestors: sjors.vanmaris [...] kpn.com
Cc:
AdminCc:

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



Subject: SSH session not killed on close
Date: Mon, 11 Oct 2010 13:20:40 +0200
To: <bug-Net-Appliance-Session [...] rt.cpan.org>
From: <sjors.vanmaris [...] kpn.com>
Good morning, I had a problem with using SSH and the Net::Appliance::Session.pm module. I have a script which connects to a router using SSH, when activating this script via a crontab entree, the SSH session wil not close causing the router to be unreachable via SSH when too much users are connected. When i activare the scipt via CLI, no problems. The SSH session is killed perfectly. There is a DESTROY subroutine in the Net::Appliance::Session.pm module which kills the proces only if $Ô matches "win", i made a workaround in the script by setting the $Ô var to "win" and it works fine....but I think there is a problem with disconnecting a SSH session I am using Solaris 10 OS and Perl version 5.8.4 Met vriendelijke groet, Sjors van Maris Engineer [cid:image001.gif@01CB6947.19B83C10] KPN W&O N&S Innovatie NIPA D&E IP Regulusweg 1 Kamer AB450 2516AC Den Haag 06 20 43 67 68
Download image001.gif
image/gif 2k
image001.gif
Subject: Re: [rt.cpan.org #62048] SSH session not killed on close
Date: Mon, 11 Oct 2010 18:08:17 +0100
To: bug-Net-Appliance-Session [...] rt.cpan.org
From: Oliver Gorwits <oliver.gorwits [...] oucs.ox.ac.uk>
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 11/10/2010 12:20, Sjors van Maris via RT wrote: Show quoted text
> I have a script which connects to a router using SSH, when > activating this script via a crontab entree, the SSH session wil > not close causing the router to be unreachable via SSH when too > much users are connected. When i activare the scipt via CLI, no > problems. The SSH session is killed perfectly. > > There is a DESTROY subroutine in the Net::Appliance::Session.pm > module which kills the proces only if $Ô matches "win", i made a > workaround in the script by setting the $Ô var to "win" and it > works fine....but I think there is a problem with disconnecting a > SSH session > > I am using Solaris 10 OS and Perl version 5.8.4
Okay thanks for letting me know. Maybe we need to kill the SSH process for more platforms than just Windows. I'm also looking at spawning the SSH process using IPC::Run instead of the current manual method. regards, - -- Oliver Gorwits, Network and Telecommunications Group, Oxford University Computing Services -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkyzRIEACgkQ2NPq7pwWBt7bMgCeO2NHYp35xRKnqhdA1Wb0UeG9 N00AoPa5v6aVHIJpXrl6rljciR8fvdhO =f+C3 -----END PGP SIGNATURE-----
I'm about to begin development of an IPC::Run based fork of this module which should hopefully deal with the SSH client in a much better way. -- regards, oliver.