I am trying to convert an existing FTP process that uses Korn Shell ftp scripting over to Perl Net::FTP. I can easily get it working but in the process I discovered something interesting. The current process (Korn Shell script) uses the command "STRUCT RECORD". After talking with the original programmer of this code, I was told that it was there to preserve trailing spaces when doing an ascii transfer (MOST of our files come from and MVS system). This is all fine and good but the code uses STRUCT RECORD for ascii AND binary transfers. When it uses it for binary transfers the number of bytes transferred is MUCH greater then the actual number of bytes for the file and the transfer can take almost twice as long as it does without using STRUCT RECORD. I have searched the web and google and even looked at some RFC info but can not find any statment as to what STRUCT REORD does. I have this theory that is NOT necessary for binary transfers and in fact considerably slows them done. 1) Does anybody know if my thery is correct. 2) Where can I find information as to what STRUCT RECORD does? Thanks Jim Locigno

In reply to STRU RECORD and FTP? by jlocigno

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.