Help for this page

Select Code to Download


  1. or download this
    # Original code:
            =42=          my $buf = "";
    ...
            =46=          }
            =47=          $cache->set($session, [1, $buf]);
            =48=          exit 0;
    
  2. or download this
                            $cmd="ls -l";
                            my($stdout, $stderr, $exit) = $ssh->cmd($cmd);
    ...
                                            $cache->set($session, [0, $buf
    +]);
                                    }
                            $cache->set($session, [1, $buf]);