I have below crontab in the system (Centos 7.9), However i am unable to verify if this runs correctly or not,
i.e if the crontab finds the PHP enr. variables or if the crontab has executed correctly without any errors in the shell or if the crontab entry has syntax issue ..etc
Any suggestion on how to do debug or capturing the output of a crontab like this one below
0 */1 * * * /var/www/example.com/scripts/cron.sh >> /var/log/app/cron/cron.log
Script content is like below
[root@]# cat /var/www/example.com/scripts/cron.sh
#!/usr/bin/env bash
cd /var/www/example.com/public
php cron.php
Is there better way to do this?