Thanks for the info. If you are installing the cron job for the
bitnami user, please change the file ownership to that user
sudo chown bitnami:bitnami /opt/bitnami/apps/mysqllog.sh
You can also update the cron task a bit to ensure that the
/bin/bash runtime would be used to run your script
0 22 * * 7 /bin/bash /opt/bitnami/apps/mysqllog.sh
Are you also able to run the script without using cron?