mvindell has asked for the wisdom of the Perl Monks concerning the following question:
I have read that sftp foreign does not accept wild cards such as "*" is this true? If so how would I go about solving my dilemma of downloading files which name changes daily. Thank you for your time.use Net::SFTP::Foreign; $host = "x.x.x.x" ; %args = ( "user" => "user" , "password" => "password" , "port" => 'port' ) ; my $sftp = Net::SFTP::Foreign->new( $host,%args, more => '-v'); $sftp->get('/directory/*.bai', '/home/appltest/cashman') or die "file transfer failed: " . $sftp->error;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::SFTP::Foreign download to a local directory
by salva (Canon) on Jun 10, 2010 at 17:06 UTC | |
by mvindell (Initiate) on Jun 10, 2010 at 18:46 UTC | |
|
Re: Net::SFTP::Foreign download to a local directory
by almut (Canon) on Jun 10, 2010 at 16:46 UTC |