title: Cron not executing Shell Script on Ubuntu
body: <p>I have a remote <code>.sh</code> script to take backup of mySQL file. Cron is running by .sh file not executing. Content of Crontab are:</p>
  
  <pre><code>#SHELL=/bin/bash PATH=/bin:/sbin:/usr/bin:/usr/sbin 
  * * * * * /home/ubuntu/dscript/db_backup.sh &gt; /tmp/db.output
  </code></pre>
  
  <p>File Contents are:</p>
  
  <pre><code>#!/bin/bash
  
  DATE=$(date +%Y%m%d_%H%M)
  
  zipname="db_prod_$DATE.sql"
  mysqldump db_prod &gt; $zipname
  aws s3 mv $zipname s3://mybackups/$zipname
  rm -rf $zipname
  
  zipname="db_staging_$DATE.sql"
  mysqldump db_staging &gt; $zipname
  aws s3 mv $zipname s3://mybackups/$zipname
  rm -rf $zipname
  </code></pre>
  
  <p><strong>Bash path</strong></p>
  
  <pre><code>bash: /bin/bash /etc/bash.bashrc /usr/share/man/man1/bash.1.gz
  </code></pre>
  
  <p>I am on Ubuntu.</p>
  
  <p>File is is in <code>+x</code> mode.</p>