title: How do I prevent a continuous loop from ending
body: <p>I have a simple bash script which calls a php script every 10 minutes thats performs some maintenance. Every once in a while this php script terminates while it's running and when this happens the bash script exits.</p>
  
  <p>I'd like to make it so the bash script keeps on looping even if the php script falters. Can anyone point me in the right direction? I've been searching for a while but I can't seem to find the answer, maybe I'm not using the right search terms. </p>
  
  <pre><code>#!/bin/sh
  set -e    
  while :    
  do    
      /usr/bin/php /path/to/maintenance/script.php
      sleep 600    
  done
  </code></pre>