title: Linux command to run script at intervals
body: <p>I have this command that I run from a terminal in ubuntu</p>
  
  <pre><code>python2.5 /home/me/web/gae/google_appengine/dev_appserver.py /home/me/web/gae/APPLICATION/trunk
  </code></pre>
  
  <p>I need to stop this running and then restart it every 10 seconds - I can run this from a .sh file if necessary.</p>
  
  <p>What would be the best way to do this? I'd like it to all be in one script if possible so <strong>not</strong> that keen on using cron jobs to run it - surely there is some way of doing a loop with a delay in purely in a shell script?</p>
  
  <p>The closest equivalent I can think of is JavaScript's <code>setInterval(function(),10000);</code></p>