Unable to stop cron mails
Hi,
We've some crons that runs frequently. The problem is, each time cron runs it throws the cron email. We've a;slso set it with /dev/null but still in-vain.
Cron:
`0 1 * * * php /home/domain/public_html/admin/tasks/create_email_notifications.cron.php >/dev/null 2>&1`
-
Hi @shahzaibmushtaq can you tell me the output of the following: crontab -l0 -
Sure, please have a look here: 0 -
Can you do the same for the user? crontab -l -u $username
Also, please upload screenshots to the thread rather than link to 3rd party sites, I've removed the link previously added.0 -
Can you do the same for the user?
crontab -l -u $username
Also, please upload screenshots to the thread rather than link to 3rd party sites, I've removed the link previously added.
Hi, Here it is :MAILTO="" SHELL="/usr/local/cpanel/bin/jailshell" 0 0 * * * php /home/domain/public_html/admin/tasks/auto_prune.cron.php >/dev/null 2>&1 SHELL="/usr/local/cpanel/bin/jailshell" 0 0 * * * php /home/domain/public_html/admin/tasks/create_internal_notifications.cron.php >/dev/null 2>&1 SHELL="/usr/local/cpanel/bin/jailshell" 0 * * * * php /home/domain/public_html/admin/tasks/delete_redundant_files.cron.php >/dev/null 2>&1 SHELL="/usr/local/cpanel/bin/jailshell" 0 0 * * * php /home/domain/public_html/admin/tasks/downgrade_accounts.cron.php >/dev/null 2>&1 SHELL="/usr/local/cpanel/bin/jailshell" */5 * * * * php /home/domain/public_html/admin/tasks/process_file_queue.cron.php >/dev/null 2>&1 SHELL="/usr/local/cpanel/bin/jailshell" 0 1 * * * php /home/domain/public_html/admin/tasks/create_email_notifications.cron.php >/dev/null 2>&1 SHELL="/usr/local/cpanel/bin/jailshell" * * * * * php /home/domain/public_html/plugins/archivemanager/queue/process_archive_queue.cron.php > /dev/null 2>&1
As you may have noticed MAILTO variable in the beginning, i added this manually for each user cron and after which it looks like cron emails are now stopped. Do you think, missing this variable by default in cpanel could be the issue ?0
Please sign in to leave a comment.
Comments
4 comments