If you have access to the logs on the remote machine, I'd suggest looking there first - if your program has exceeded any system-imposed limits, you may get an indication as to why. If you're not already, I'd suggest building in some sort of logging mechanism to your own code - this can be as basic as sprinkling print statements in the appropriate places.

Given that you mention 'thousands' of files which are not likely to be enormous (if they're typical of common emails), I'd guess you were running into open file descriptor limits. Better logging will reveal all though.

Hope that helps.

2006-03-13 Retitled by planetscape, as per Monastery guidelines
Original title: 'Re: Terminated'


In reply to Re: Why is my perl program 'Terminated' without explanation? by john_oshea
in thread Why is my perl program 'Terminated' without explanation? by wulfric

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.