Tanalis has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Script Timeouts
by nothingmuch (Priest) on Nov 08, 2002 at 08:40 UTC | |
by Tanalis (Curate) on Nov 08, 2002 at 08:58 UTC | |
|
Re: Script Timeouts
by DamnDirtyApe (Curate) on Nov 08, 2002 at 09:05 UTC | |
|
Re: Script Timeouts
by robartes (Priest) on Nov 08, 2002 at 08:42 UTC | |
by Tanalis (Curate) on Nov 08, 2002 at 09:01 UTC | |
|
Re: Script Timeouts
by helgi (Hermit) on Nov 08, 2002 at 10:06 UTC | |
by Tanalis (Curate) on Nov 08, 2002 at 10:56 UTC | |
|
Re: Script Timeouts
by Tanalis (Curate) on Nov 08, 2002 at 11:03 UTC | |
|
Re: Script Timeouts
by petral (Curate) on Nov 08, 2002 at 22:48 UTC |