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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |