jellyman has asked for the wisdom of the Perl Monks concerning the following question:
I have an application which sends data to a remiote site via sftp.
I can get to the site via sftp on the command line, and when I run my code the data makes it accross okay.
However, I get this odd warning from the module:
Couldn't fsetstat: No such file or directory at ./triggered_push.pl line 160
The code basically goes like this:#!/usr/bin/perl use strict; use warnings; use Net::SFTP::Foreign; use Net::SFTP::Foreign::Attributes; use Net::SFTP::Foreign::Constants qw( :status ); use Net::SFTP::Foreign::Util qw( fx2txt ); use Archive::Zip qw( :ERROR_CODES ); ... my %conn_args = ( "user" => $remote_user, "port" => $remote_port, ); $sftp = Net::SFTP::Foreign->new( $remote_host, %conn_args ); ... unless ( $sftp->put( $file, $remote_file ) ) { ... error handling code ... }
The sftp->put method executes (that's the line 160 in the erorr message), but the error handling code doesn't run, and as I said the data gets sent, but my manager is a bit picky and won't let me go live without some understanding about this warning.
Is there any insight I can gain from you good people?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: odd warning from Net::SFTP::Foreign
by salva (Canon) on Jun 02, 2006 at 22:33 UTC | |
by jellyman (Novice) on Jun 05, 2006 at 11:47 UTC | |
by salva (Canon) on Jun 05, 2006 at 14:35 UTC | |
by jellyman (Novice) on Jun 06, 2006 at 15:00 UTC |