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?


In reply to odd warning from Net::SFTP::Foreign by jellyman

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.