While there is an interface within cPanel accounts to manage Cron Jobs, there is not an editor available to edit root cron jobs. This article will outline how to disable cron email notifications in both instances.
Procedure
Within the cPanel interface, there are two methods of disabling email notifications for cron jobs.
To disable email notifications for all cron jobs, remove the email address.
To disable email notifications for a single cron job, perform the following steps:
-
Locate the cron job to disable email notifications in the Current Cron Jobs table and click Edit.
-
In the Command text box, add the
/dev/null 2>&1
line to the end of the command. For example:/usr/local/cpanel/bin/is_script_stuck >/dev/null 2>&1
-
Save your changes.
For root cron jobs, you will need to edit the crontab from the command line using "crontab -e". Like disabling email notifications for a single cron job within the cPanel interface, you will need to add the/dev/null 2>&1
line to the end of the command. For example:
/usr/local/cpanel/bin/is_script_stuck >/dev/null 2>&1
Comments
0 comments
Article is closed for comments.