Hi, I'm sorry if this has been posted before somewhere but I can't seem to find it in searches exactly. I'm using a perl script to automatically pgp encrypt and upload a file via ftp. The script works well (seemingly) if it runs either off my shell or in cron. The problem I'm having and can't figure out is, when it runs in cron, for some reason the binary type I is never set even when I manually set it prior to uploading. It oddly runs just fine when I execute it from the terminal though. I was wondering if there is some env setting that might need to be set. The perl script I'm using is basically straight out of the cookbook (for ftp) with the exception that I'm adding a type I statement. I've done packet captures and compared both the manual and automated and never see same between them. Very odd. Any suggestions would be appreciated. Thanks in Advance.

In reply to Net::Ftp and cron by eosyn

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.