Help for this page

Select Code to Download


  1. or download this
    # NB: you can only do one command on a channel so we get the channel
    ##  do the command give back the output then close the channel   Note 
    +that the command
    ##  must be a fully "shell punctuated and escaped" 
    ...
        }
        return $out ;
    }
    
  2. or download this
    print docmd("cd tmp; ls") ;
    print docmd("cd bin; ls") ;
    $ssh2->disconnect() ;