The first thought that pops up (which assumes a unix system;
if not skip this part) is that you're hitting some sort of
resource limit on the system. If you are running this from
the command line, check 'limit cputime' in csh/tcsh or
'ulimit -t' in bash/ksh. Also, if the problem is occurring
when you log out, you'll need to 'nohup' your program, to
prevent it from being sent SIGHUP when you log out.. it's
run like 'nohup ./perl_program args'.
If the above doesn't help, there are unfortunately several
things that could be causing it outside of perl. As
mentioned above, it could be MySQL with the problem. The
best advice I can give is to do some verbose debugging in
the script: write out to a logfile, check every return code
from all system calls and MySQL calls, write success
messages for every part that succeeds, etc. Try putting
an END block in your perl code to trap the time that it's
dying, and see if it's doing so at a regular interval.
Hope this helps.
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.