restart script after reaching certain limit
<p>Didn't see a question similar to this, so here goes:</p>

<p>Let's say I'm running a cron script, and it has the potential to run out of memory (64M) or time (30 seconds). Is there a way for the script to detect this and restart itself, or redirect to itself?</p>
