title: Bash script not executing on startup
body: <p>I used crontab to run a bash script once a day (at midnight). This worked successfully, but I didn't really think it through enough to realise that the script would not run if my computer happened to be off at midnight (or even asleep).</p>
  <p>So I think that I have to keep the crontab entry (in case my computer is on) but I also want to make the bash script execute on startup (in case my computer was off) so that I have covered all my bases.</p>
  <p>I saw online that to have my script execute on startup I should edit my <code>/etc/rc.local</code> file. My file now contains:</p>
  <pre><code>#! /bin/bash                                                                    
  bash /home/me/code.sh
  exit 0
  </code></pre>
  <p>and my permissions are <code>-rwxr-xr-x</code>.</p>
  <p>However, the script does not execute on startup. Is there something I'm doing wrong?</p>