Thank you so much for your help salva and Kcott!! I got past my problem. The issue was with rput. even though I had put in the options to not change permissions (copy_perm => 0, copy_time => 0) it did not seem to work, rput tried to update the permissions on the file and thus I got the 0 byte file(this occurs if a file exists on the target server, I am in the same group as the person who created the file on the target server and the target file has been set to chmod 777, but rput wants to change permissions and can't, so it leaves it at a 0 length file). So I switched over the put command with the options copy_perm => 0, copy_time => 0 and that did work!!, the permissions were not changed and it allowed the updating of a file. Thanks


In reply to Re^4: rput on foreign sftp in perl by Anonymous Monk
in thread rput on foreign sftp in perl by Anonymous Monk

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.