roperl has asked for the wisdom of the Perl Monks concerning the following question:
When the put fails I get the warn error as shown below Error: Put failed: Net::SFTP::Foreign=HASH(0x123b3c0)->erroruse Net::SSH2; use Net::SFTP::Foreign; my $ssh2 = Net::SSH2->new( timeout => '30000' ); $ssh2->connect( $host, $port ) $ssh2->auth( username => $user, password => $pass ) my $sftp = Net::SFTP::Foreign->new( ssh2 => $ssh2, backend => 'Net_SSH +2', timeout => '30' ); $sftp->put( "$file", "$destfile", best_effort => 1, atomic => $atomic +) or ( warn( "Put failed: $sftp->error\n" ) && exit 1 );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Net::SFTP::Foreign error
by haukex (Archbishop) on Sep 25, 2018 at 18:32 UTC | |
|
Re: Net::SFTP::Foreign error
by Perlbotics (Archbishop) on Sep 25, 2018 at 18:45 UTC | |
by roperl (Beadle) on Sep 25, 2018 at 20:30 UTC | |
by AnomalousMonk (Archbishop) on Sep 25, 2018 at 21:37 UTC | |
by salva (Canon) on Sep 26, 2018 at 07:31 UTC | |
by AnomalousMonk (Archbishop) on Sep 26, 2018 at 14:59 UTC | |
|