I have setup the following crontab -
sudo crontab -e 01 21 * * * /usr/local/bin/sqlbackup.sh -e
This should run sqlbackup.sh at 21.01 every night but it never runs. here is the error log
cron: (root) RELOAD (crontabs/root) CRON: (root) CMD (/usr/local/bin/sqlbackup.sh -e) CRON: (CRON) error (grandchild #31600 failed with exit status 2) CRON: (CRON) info (No MTA installed, discarding output)
I have set the permission to 777 and the owner is root. I can run the file by entering the above file path.