Hi Rob,

Thanks very much for your feedback. I tried the code given by yourself to understand the error returned better, but still could not make sense of it, perhaps you could shed some light for me. Below are the error returned:

D:\Test>call test_a.pl > samle.log libssh2_scp_send_ex(ss->session, path, mode, size, mtime, atime) -> 0x +1d05914 Net::SSH2::Channel::DESTROY -37 LIBSSH2_ERROR_EAGAIN Unable to send channel data at D:\Test\test_a +.pl line 26. Net::SSH2::SFTP::DESTROY Net::SSH2::SFTP::DESTROY freeing session Net::SSH2::DESTROY object 0x19b6b3c

The perl version : v5.8.8 built for MSWin32-x86-multi-thread.

Net::SSH2 version : 0.28

Installed it via ppm and obtained the ppd file from http://theoryx5.uwinnipeg.ca/ppms/Net-SSH2.ppd.

Please do let me know if you upload the latest version of Net::SSH2, at least i could still give it a try. Thanks again.

Regards,

Sandra


In reply to Re^2: Unable to transfer file with scp_put using Net::SSH2 by tsandras
in thread Unable to transfer file with scp_put using Net::SSH2 by tsandras

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.