title: How to run Cronjobs more often than once per minute?
body: <p>I created a Email-Queue database table. I will insert all Emails my PHP application needs to send into this table. </p>
  
  <p>Another PHP script will then look for all unsent Emails and sends them. </p>
  
  <p>I run this script using cronjobs. Unfortunately cronjobs can run only at a maximum of once per minute. 
  So in the worst-case a user has to wait one minute until his Email is really going to be sent. </p>
  
  <p>My current idea for a workaround is calling the script with an addtional sleep parameter and duplicating the cronjobs.</p>
  
  <p>Example:</p>
  
  <pre><code>* * * * * curl emails.php?sleep=0 &gt;/dev/null 2&gt;&amp;1
  * * * * * curl emails.php?sleep=10 &gt;/dev/null 2&gt;&amp;1
  * * * * * curl emails.php?sleep=20 &gt;/dev/null 2&gt;&amp;1
  * * * * * curl emails.php?sleep=30 &gt;/dev/null 2&gt;&amp;1
  * * * * * curl emails.php?sleep=40 &gt;/dev/null 2&gt;&amp;1
  * * * * * curl emails.php?sleep=50 &gt;/dev/null 2&gt;&amp;1
  </code></pre>
  
  <p>In the above example the script would run every 10 seconds. The first line of the emails.php Script would be:</p>
  
  <pre><code>sleep($_REQUEST['sleep']);
  </code></pre>