• This project
    • Loading...
  • Sign in

guizhou-monitorV2.0.1 / agent · Files

Go to a project
11818 11818 11818 qq%e5%9b%be%e7%89%87 08 03 14 04 40

GitLab

  • Go to group
  • Project
  • Activity
  • Files
  • Commits
  • Pipelines 0
  • Builds 0
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Members
  • Labels
  • Wiki
  • Forks
  • Network
  • Create a new issue
  • agent
  • app_bin
  • sshHost.pl
  • 贵州国税升级需求代码
    b6c5ae48
    by 王凤
    2017-04-10 12:06:14 +0800  
    Browse Files
sshHost.pl 247 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14
use strict;
use Net::OpenSSH;
 
my $host = $ARGV[1];
my $user = $ARGV[2];
my $pwd = $ARGV[3];
 
my $ssh = Net::OpenSSH->new($host, user=>$user, password=>$pwd , timeout => 10);

my $cmd = "uname -a";

my @out = $ssh->capture($cmd);

print "@out";