title: How to stop the execution of .sh script at certain time?
body: <p>I have the following script which ensure that a .php file will be invoked every 3 seconds.</p>
  
  <pre><code>#!/bin/bash
  
  for (( i=0; i&lt;43200; i++ ))
  do
  
  /usr/bin/php /var/www/vhosts/mydomain.com/httpdocs/somefile.php
  
  
  sleep 3
  done
  </code></pre>
  
  <p>I would like to be able to stop the script excecution if the time is 23:58:59</p>
  
  <p>Anyone can help me?</p>
  
  <p>Thanks, Zoran</p>