> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of zentara > Sent: Thursday, April 10, 2008 9:31 AM > To: beginners@perl.org > Subject: Re: Sometimes Net::SSH2 can't read() from channel? > > On Wed, 9 Apr 2008 17:20:06 -0400, [EMAIL PROTECTED] ("RICHARD > FERNANDEZ") wrote: > > >Hi folks, > > > >I have a test script ( mostly ripped from a posting I found on a CPAN > >forum) which uses Net::SSH2 to run a `who' command on a > remote server. > >The script works fine for most servers, but I have a few > boxes where, > >despite being able to login, I get no output. > >Anyone have any ideas why this might be happening? > > > Try setting: > > $chan->blocking(0); > > > my $chan = $ssh2->channel(); > > zentara >
Thank you, zentara. It seems this is what was needed. richf -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/