Monks,

I'm trying to debug a script that (can) spend a large amount of time in a foreach loop, processing and updating the records on a (very large) database.

However, I'm falling foul of a Perl "feature" that kills the script after it's been in a loop for 10 minutes or more, assuming (I presume) that it's stuck in an infinite loop.

The only indication of this that I get (apart from the script dying) is the message Alarm Clock. I haven't defined anything (yet) that could cause this, so I'm assuming it's a Perl thing.

Now, I'm about to write a handler that drops out of the loop every 599 seconds (ie, 1 second before the script is killed) and returns to it, essentially to allow the loop to carry on from where it left off each time.

Before I do that, though, I thought I'd ask and see if anyone knows of a way to override the 10 minute limit on loop structures? I don't know if it's a local thing or not - I can't find any reference to it at all in the Camel or Black Book, it's just very annoying to keep have happening.

Any advice or suggestions would be a great help.

Cheers
--Foxcub


In reply to Script Timeouts by Tanalis

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.