title: cron job not working on macOS High Sierra
body: <p>I've created a bash script that backups my files on a NAS.
  When I run this file manually it works fine.</p>
  <p>But want to run this backup every 2 weeks so I created a cronjob</p>
  <blockquote>
  <p>=&gt; crontab -l</p>
  <p>0 22 1,15 * * /Users/ralphschipper/Documents/shFiles/rsbackup.sh</p>
  </blockquote>
  <p>so I checked this at this site:
  <a href="https://crontab.guru/#30_23_1,15_*_*" rel="nofollow noreferrer">crontab.guru</a></p>
  <p>it's now august 16th so it should run yesterday at 10pm right?</p>
  <p>this is the code in rsbackup.sh:</p>
  <pre><code>caffeinate -ims rsync --log-file=&quot;/Users/ralphschipper/Documents/Logs/rsync&quot;`date +&quot;%Y-%m-%d&quot;`.log -av /Volumes/Ext\ 1TB/Google\ Drive/ /Volumes/USB_Storage/Backups/Google\ Drive/
  #caffeinate -ims rsync --log-file=&quot;/Users/ralphschipper/Documents/Logs/rsync&quot;`date +&quot;%Y-%m-%d&quot;`.log -av /Users/ralphschipper/Documents/test_a/ /Users/ralphschipper/Documents/test_b/
  cat &quot;/Users/ralphschipper/Documents/Logs/rsync&quot;`date +&quot;%Y-%m-%d&quot;`.log | mail -s &quot;Backuplog&quot; mymail@gmail.com
  </code></pre>
  <p>the hashtag at line 2 is for testing</p>
  <p>do I miss something here?</p>