ssubrat77 has asked for the wisdom of the Perl Monks concerning the following question:
-- Thanks for all the replies. My problem got resolved. Thanks a lot for your helpuse Net::SFTP::Foreign; my $sftp = Net::SFTP::Foreign->new( host => 'myserver.com', port => '22', user => 'ftpuser', more => [qw( -i myserver.private.key.ppk)], ssh_cmd => 'plink'); $sftp->die_on_error("Unable to establish SFTP connection"); my $entry = "abcd*.txt"; my $files = $sftp->ls ('/etc', wanted => qr/$entry/) or die "unable to + retrive directory: ".$sftp->error;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::SFTP::Foreign hwo to list (ls) files
by salva (Canon) on Jun 03, 2011 at 07:27 UTC | |
|
Re: Net::SFTP::Foreign hwo to list (ls) files
by philipbailey (Curate) on Jun 03, 2011 at 07:07 UTC |