Subject: | Module doesn't connect to remote server, but looks on local filesystem instead! |
Date: | Mon, 19 Oct 2009 10:07:54 +0100 |
To: | bug-Net-SCP [...] rt.cpan.org |
From: | Will Sheppard <ultrarandom [...] googlemail.com> |
The following script demonstrates, for v0.08 that the local filesystem
is used as the source, while the remote hostname is ignored! :
perl -MNet::SCP -le'$scp = Net::SCP->new( "nolsearch58", "noladmin" )
or die "couldnt create an SCP instance ($!)";
$scp->scp("/data/logs_archive/searchplus_processed/20090924/*.csv",
"/data/logs_archive/searchplus_to_load/") or die "couldnt scp the
files (".$scp->{errstr}.")";
Result: (outputs the following)
couldnt scp the files (cp: cannot stat
`/data/logs_archive/searchplus_processed/20090924/*.csv': No such file
or directory) at -e line 1.
Result when the source files exist on the local server:
The local files are copied (no output).