title: Cron jobs -- to run every 5 seconds
body: <p>I want to create cron job that runs a script every 5 seconds. Seeing that cron jobs only allows increments of minutes 0-59 and so on.</p>
  
  <p>I thought to create another script that calls my original script written below. </p>
  
  <pre><code>#!/bin/bash
  
  while true
  do
  # script in the same directory as this script. is this correct?
  bash makemehappy.sh
  sleep 1
  done
  </code></pre>
  
  <p>I now, need to know how to run this script every time i boot my computer and for it to start itself if it isn't running for some reason. </p>
  
  <p>I am also aware that running this script every minute wouldn't be a good thing. :)</p>
  
  <p>if there is an easier way to run a script every 5 seconds please advise. </p>
  
  <p>Please and thank you.</p>