Run a script every few secconds : <p>I have a php script that i need to run every 4 seconds for one hour a day, what is the best way to do this. I look up a way of using cron and sleep and also watch but what would be the best way of doing this over all?</p>

<p>Watch </p>

<pre><code>watch -n10 command args
</code></pre>

<p>cron:</p>

<pre><code>* * * * * /foo/bar/your_script
* * * * * sleep 4; /foo/bar/your_script
* * * * * sleep 8; /foo/bar/your_script
* * * * * sleep 12; /foo/bar/your_script
</code></pre>
