in reply to Error - A non-blocking socket operation could not be completed immediately.

Just a guess, try shell()?
#shell use my $chan = $ssh2->channel(); $chan->blocking(0); $chan->shell(); print $chan "ls -la\n"; print "LINE : $_" while <$chan>; print $chan "who\n"; print "LINE : $_" while <$chan>; print $chan "date\n"; print "LINE : $_" while <$chan>; $chan->close;

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh
  • Comment on Re: Error - A non-blocking socket operation could not be completed immediately.
  • Download Code

Replies are listed 'Best First'.
Re^2: Error - A non-blocking socket operation could not be completed immediately.
by perl514 (Pilgrim) on Mar 07, 2013 at 14:10 UTC

    Hi Zentara,

    Thanks for replying. The shell outputs only the first line. I again tried with the /nas/sbin/getreason command and it gives the output...just when there is a space, I think there is a problem.

    Perlpetually Indebted To PerlMonks

    use Learning::Perl; use Beginning::Perl::Ovid; print "Awesome Books";
    http://dwimperl.com/windows.html is a boon for Windows.