title: "/bin/bash^M: bad interpreter: No such file or directory" error when executing a bash script from a cron job
body: <p><strong><em>Restore_DB.sh</em></strong> :-</p>
  
  <pre><code>#!/bin/bash
  mysql -u user -ppassword DB_name &lt; /home/A/B/SQL_File.sql
  </code></pre>
  
  <p>I used the above code to restore a MySQL database from a cron job but I'm getting the bellow error</p>
  
  <pre><code>/usr/local/cpanel/bin/jailshell: /home/A/B/Restore_DB.sh: /bin/bash^M: bad interpreter: No such file or directory
  </code></pre>
  
  <p>This is the cron job command I used:-</p>
  
  <pre><code>/home/A/B/Restore_DB.sh
  </code></pre>