- or download this
my $ssh = Net::OpenSSH->new(
$ip,
master_opts => [-o => "StrictHostKeyChecking=no"],
password=>$password,
user => $user);
- or download this
client obj: $VAR1 = bless( {
'hostname' => 'qaclient6.omneon.local',
...
'user' => 'root'
}, 'MGRemoteHost' );
- or download this
my $cmd = 'mount -t cifs //$server->ip}/myscripts /mnt/mgscripts -o us
+er=qauser,password=Tester-01';
push @cmds,$cmd;
$ssh->open_ex( { stdin_pipe => 1,stdout_pipe => 1, stderr_pipe => 1 },
+ @cmd )
or my $error = "open_ex failed: " . $opts->{ssh}->error;
- or download this
"cd /mnt/mgscripts/latest' via open_ex and I get:
'bash: line 0: cd: /mnt/mgscripts/latest: No such file or directory'
- or download this
'//10.20.56.64/myscripts/ on /mnt/mgscripts type cifs (rw,mand)'
- or download this
'cd /mnt/mgscripts/latest;ls'
- or download this
$VAR1 = [
'bash: line 0: cd: /mnt/mgscripts/latest: No such file or di
+rectory',
'Can\'t open perl script "CreateFiles.pl": No such file or d
+irectory'
];
- or download this
'mount;sleep 10;cd /mnt/mgscripts/latest;sleep 10;ls'
- or download this
'//10.20.56.64/myscripts/ on /mnt/mgscripts type cifs (rw,mand)'