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