Help for this page

Select Code to Download


  1. or download this
    my $ssh2 = Net::SSH2->new();
    $ssh2->debug(1);
    ...
          $chan->write("dir\n") and print "dir fired\n";
          select(undef,undef,undef,0.2) and print "select command fired\n"
    +;
          print $buf while ($len = $chan->read($buf,512)) > 0;
    
  2. or download this
    C:\Compatibility_Automation_Temp>perl SSH2.pl
    connetced
    ...
    Net::SSH2::Channel::read(size = 512, ext = 0)
    
    ##here, this program stuck
    
  3. or download this
    sub shell {
        $_[0]->process('shell')
    }