Skip Menu |

This queue is for tickets about the Net-SCP CPAN distribution.

Report information
The Basics
Id: 50639
Status: rejected
Priority: 0/
Queue: Net-SCP

People
Owner: Nobody in particular
Requestors: ultrarandom [...] googlemail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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).
On Mon Oct 19 05:09:00 2009, ultrarandom@googlemail.com wrote: Show quoted text
> 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).
Probably not a bug. Shell expansion is a property of the shell, not SCP.