title: Cronjob timing out with internal server error
body: <p>My hosting provider only allows me to run a cronjob every 2 hours. Since I need it to run every second, I've made a page that will run for 2 hours. Also, I developed with ZF; so the page needs to be bootstrapped, which means the cronjob needs to call a web address. </p>
  
  <p>So far my bash script runs every two hours:</p>
  
  <pre><code>#!/bin/bash
  
  wget "http://www.mysite.co.za/ajax/cron"
  </code></pre>
  
  <p>However, it stops after a few minutes with the following error:</p>
  
  <pre><code>--2011-02-04 09:32:32--  http://www.mysite.co.za/ajax/cron
  Resolving www.mysite.co.za... 123.40.97.157
  Connecting to www.mysite.co.za|123.40.97.157|:80... connected.
  HTTP request sent, awaiting response... 500 Internal Server Error
  2011-02-04 09:37:33 ERROR 500: Internal Server Error
  </code></pre>
  
  <p>I don't know much about cronjobs/bash scripts, but I think it's timing out? Can anyone confirm this? If so, I'll look into curl_mutl_init to send a response back and keep the process alive at the same time - I don't think I'll have access to process control functions.</p>
  
  <p>If anyone has any tips/advice, please don't hesitate.</p>