in reply to Why is my perl program 'Terminated' without explanation?

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'

Replies are listed 'Best First'.
Re^2: Why is my perl program 'Terminated' without explanation?
by wulfric (Initiate) on Mar 12, 2006 at 20:50 UTC

    Thanks for the reminder to look at the logs. The answer was there: "Out of Memory: Killed process 19956 (pr_email.pl)."

    Now to figure out why, but I suspect the objects created by Email::MIME are not being detroyed properly. Will have to look into that. Email::MIME itsself doesn't have a destroy method.

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