#!/usr/bin/perl use strict; use warnings; use Net::SFTP::Foreign; my $sftp = Net::SFTP::Foreign->new( 'user@localhost', password => 'password', more => ['-v'] ); $sftp->get('/remote/Desktop/copy', '/home/user/Desktop/copy') or die "unable to retrieve copy: ".$sftp->error;
This worked for me.
In reply to Re: NET::SFTP::Foreign in perl
by Khen1950fx
in thread NET::SFTP::Foreign in perl
by vetrivel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |