in reply to Re: SSH to a pix
in thread SSH to a pix

Net::SSH::W32Perl is outdated. I would try patching Net::SSH::Perl, something like
- fcntl($sock, F_SETFL, O_NONBLOCK) - or die "Can't set socket non-blocking: $!"; + defined( $sock->blocking(0) ) + or die "Can't set socket non-blocking: ${\int$!} : $!";

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.

Replies are listed 'Best First'.
Re^3: SSH to a pix
by tachyon (Chancellor) on Jun 23, 2004 at 12:52 UTC

    All Net::SSH::W32Perl does is override the connect method and set a couple of defaults (port 22 and SSH 2). It uses IO::Socket. Net::SSH::Perl uses a vanilla socket so you can't call blocking() method on it as it does not have one.....

    I think protocol => 1 may do the trick.

    cheers

    tachyon

Re^3: SSH to a pix
by Nalina (Monk) on Jun 24, 2004 at 06:59 UTC
    Thank u very much.

    Patching Net::SSH::Perl didn't work, so I commented the two lines

    fcntl($sock, F_SETFL, O_NONBLOCK) or die "Can't set socket non-blocking: $!";
    This works fine!!!!!!!!

    Thanks a lot

    Nalina