#!
do_stuff() {
# command 1 here, remove the hash symbol
# command 2 here, remove the hash symbol
# command 3 here, remove the hash symbol
date
}

while true; do
  do_stuff &>/dev/null &
  pid=$!
  sleep 600
  if ! kill -0 $pid &>/dev/null; then
    kill -9 $pid &>/dev/null
  fi
done

# This script will enable a set of command to execute correctly at every 10 minute (600 seconds).
# The difference with this script over using the sleep command is that it is FORCED to repeat
# at 10 minute intervals regardless, even if the commmands have not been completed.
# It also eliminates any cumulative timing errors that may occur when carrying out tasks.
# Any number of commands may be entered, and any time frame too in seconds. 
# This script should allow ad-hoc operation of timed events withough a cron tab being set up.
# the date command should be monitored to confirm that the timing is  not accumulating errors.
