title: cron not working on Raspberry Pi
body: <p>I am trying to write my first cron job on a Raspberry Pi 2b, logged in under username <code>pi</code>.  Note that I am using cron.d not crontab.</p>
  
  <p>The job is intended to write the time to a file named <code>cron.txt</code> located in the directory <code>/home/pi</code>.</p>
  
  <p>The cron file is named <code>mycronjob</code> and is located in <code>/etc/cron.d/</code>
  Itts line is:</p>
  
  <pre><code>        ***** /home/pi/scripts/cron.sh 
  </code></pre>
  
  <p>cron.sh is located at /home/pi/scripts/ . This file, before it was made executable, contained</p>
  
  <pre><code>   #!/bin/sh
     Date &gt;&gt; /home/pi/cron.txt
  </code></pre>
  
  <p>I can manually execute the cron.sh file using the following:  ./cron.sh
  Checking cron.txt shows that the date was added to the file.
  Problem: The cron should run every minute and add a time to the file but it doesn’t work.  I would appreciate a nudge in the right direction.</p>