title: cron job that kills a process after 5 hours
body: <p>I basically have a cron job which runs every night that updates thousands of products in my database. </p>
  
  <p>The reason I run the cron job at night is because there will be less latency on the servers as not many people visit the site during this time, the cron job can pretty much run on for days without any interference.</p>
  
  <p>Here is what the cron job command looks like</p>
  
  <pre><code>30 23 * * *     /usr/bin/php /var/www/ul/prices_all.php &gt;&gt; /var/www/ul/log/prices_all.txt
  </code></pre>
  
  <p>What I would like to know is would it be possible to create a cron job which kills this process after 5 hours e.g.</p>
  
  <pre><code>30 05 * * *     kill /var/www/ul/prices_all.php[process]
  </code></pre>