【发布时间】:2015-03-25 18:09:59
【问题描述】:
我想使用 SCP 将目录从一台主机复制到另一台主机 我尝试使用以下语法
my $src_path="/abc/xyz/123/";
my $BASE_PATH="/a/b/c/d/";
my $scpe = Net::SCP::Expect->new(host=> $host, user=>$username, password=>$password);
$scpe->scp -r($host.":".$src_path, $dst_path);
我得到的错误是没有这样的文件或目录。你能在这方面提供帮助吗?
【问题讨论】: