I have a long standing cronjob running on a cPanel account. Recently I have added a second cronjob instruction to make two in total.
They are here:
ONE:
TWO:
The first, has been long standing and I believe this to be working correctly.
The second, is new and the instruction "/usr ....error_cleaner.php .... 2>&1" works perfectly when run from the Terminal command line.
The Cron timings ate also correct as per cron-tab guru, to run on the 0,8,16th hour each day. However, I am not seeing any indictication on the system that this crontab ever actually runs (no purposeful error reports that the script ran).
How can I diagnose this ?
They are here:
ONE:
*/5 | 22-23,0-1 | * | * | * | /usr/local/bin/php /home/account/crons/cron_mailer.php >/dev/null 2>&1 |
TWO:
15 | 0,8,16 | * | * | * | /usr/local/bin/php /home/account/crons/error_cleaner.php >/dev/null 2>&1 |
The first, has been long standing and I believe this to be working correctly.
The second, is new and the instruction "/usr ....error_cleaner.php .... 2>&1" works perfectly when run from the Terminal command line.
The Cron timings ate also correct as per cron-tab guru, to run on the 0,8,16th hour each day. However, I am not seeing any indictication on the system that this crontab ever actually runs (no purposeful error reports that the script ran).
How can I diagnose this ?
Last edited by a moderator: