Hello,
Iam trying to use the module Net:SCP::Expect to copy file from a remote to local server, but keep getting error. Dont know what or where to make a change. Below is my short code:
my $scpe use strict;
use Net::SCP::Expect;
my $scpe = Net::SCP::Expect->new(
host=>'10.11.3.141',
user=>'user',
password=>'password',
verbose => 1,
timeout => 60
);
$scpe->scp("mpire@10.11.3.141:/dir/file, newlocation");
Could you please help. Thanks so much.
~D