Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
    $ssh->login($user,$password);
    my($out) = $ssh->cmd($cmd);
    print "$out\n";
    
  2. or download this
    #!/usr/bin/perl
    #this uses Net::SSH, instead of Net::SSH::Perl 
    ...
    print "$out\n";
    print "$error\n";