Skip Menu |
 

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

Report information
The Basics
Id: 17127
Status: resolved
Priority: 0/
Queue: Net-SSH-Perl

People
Owner: Nobody in particular
Requestors: dupuis.dominic [...] hydro.qc.ca
Cc:
AdminCc:

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



Subject: Can't set socket non-blocking
Download (untitled) / with headers
text/plain 646b
Bonjour! I really need to use your Net::SSH::Perl module but I'm actually unable to do it...any solution right now about this bug?!? Thanks! --- my $ssh = Net::SSH::Perl->new($host); $ssh->login("xxxx", "xxxxxxxx"); my($stdout, $stderr, $exit) = $ssh->cmd("ls"); print "$stdout\n$stderr\n$exit\n"; exit; --- When I try to run this code, I got this error: Can't set socket non-blocking: Bad file descriptor at C:/Perl/site/lib/Net/SSH/Perl.pm line 212, <GEN1> line 1. For your info: This is perl, v5.8.7 built for MSWin32-x86-multi-thread I'm running Windows XP Thanks for any help!
From: eran.kaufman [...] gmail.com
Download (untitled) / with headers
text/plain 851b
On Wed Jan 18 09:41:39 2006, guest wrote: Show quoted text
> Bonjour! > > I really need to use your Net::SSH::Perl module but I'm actually > unable to do it...any solution right now about this bug?!? > > Thanks! > > --- > my $ssh = Net::SSH::Perl->new($host); > $ssh->login("xxxx", "xxxxxxxx"); > my($stdout, $stderr, $exit) = $ssh->cmd("ls"); > > print "$stdout\n$stderr\n$exit\n"; > > exit; > --- > > When I try to run this code, I got this error: > > Can't set socket non-blocking: Bad file descriptor at > C:/Perl/site/lib/Net/SSH/Perl.pm line 212, <GEN1> line 1. > > For your info: > This is perl, v5.8.7 built for MSWin32-x86-multi-thread > I'm running Windows XP > > Thanks for any help! >
Hey, It appears I receive the same error (even the same line). Can someone pls assist? Many thanks, Eran
Download (untitled) / with headers
text/plain 1.2k
On Tue Feb 07 03:58:16 2006, guest wrote: Show quoted text
> On Wed Jan 18 09:41:39 2006, guest wrote:
> > Bonjour! > > > > I really need to use your Net::SSH::Perl module but I'm actually > > unable to do it...any solution right now about this bug?!? > > > > Thanks! > > > > --- > > my $ssh = Net::SSH::Perl->new($host); > > $ssh->login("xxxx", "xxxxxxxx"); > > my($stdout, $stderr, $exit) = $ssh->cmd("ls"); > > > > print "$stdout\n$stderr\n$exit\n"; > > > > exit; > > --- > > > > When I try to run this code, I got this error: > > > > Can't set socket non-blocking: Bad file descriptor at > > C:/Perl/site/lib/Net/SSH/Perl.pm line 212, <GEN1> line 1. > > > > For your info: > > This is perl, v5.8.7 built for MSWin32-x86-multi-thread > > I'm running Windows XP > > > > Thanks for any help! > >
> > > Hey, > It appears I receive the same error (even the same line). > Can someone pls assist? > > Many thanks, > Eran
This bug has been listed as resolved twice but no information posted as to the fix or cause. If this is user error, a note to that effect and how to fix the problem would be appreciated. If it's an actual bug, a not on how to fix it or when it might be fixed would be great.
Download (untitled) / with headers
text/plain 1.5k
On Thu Mar 30 16:46:28 2006, guest wrote: Show quoted text
> On Tue Feb 07 03:58:16 2006, guest wrote:
> > On Wed Jan 18 09:41:39 2006, guest wrote:
> > > Bonjour! > > > > > > I really need to use your Net::SSH::Perl module but I'm actually > > > unable to do it...any solution right now about this bug?!? > > > > > > Thanks! > > > > > > --- > > > my $ssh = Net::SSH::Perl->new($host); > > > $ssh->login("xxxx", "xxxxxxxx"); > > > my($stdout, $stderr, $exit) = $ssh->cmd("ls"); > > > > > > print "$stdout\n$stderr\n$exit\n"; > > > > > > exit; > > > --- > > > > > > When I try to run this code, I got this error: > > > > > > Can't set socket non-blocking: Bad file descriptor at > > > C:/Perl/site/lib/Net/SSH/Perl.pm line 212, <GEN1> line 1. > > > > > > For your info: > > > This is perl, v5.8.7 built for MSWin32-x86-multi-thread > > > I'm running Windows XP > > > > > > Thanks for any help! > > >
> > > > > > Hey, > > It appears I receive the same error (even the same line). > > Can someone pls assist? > > > > Many thanks, > > Eran
> > > This bug has been listed as resolved twice but no information posted as > to the fix or cause. If this is user error, a note to that effect and > how to fix the problem would be appreciated. If it's an actual bug, a > not on how to fix it or when it might be fixed would be great.
Found the solution. You must use Net::SSH::W32Perl on Windows. Install the package, then change the script to: use Net::SSH::W32Perl; my $ssh = Net::SSH::W32Perl->new($host); etc...


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.