Scheduled tasks added via cPanel or the crontab section send an email to the cron owner after each execution. The way to prevent this is to add
/dev/null
2>&1
to the end of the added file. For example, if the file you are adding looks like the following, you should add the > /dev/null 2>&1 part at the end.
wget -O - -q -t 1 –timeout=60
http://URL_TO_RUN > /dev/null 2>&1If you are adding via crontab on a Linux server, it should look like the following. (Times are given as examples.)
*/5 * * * * /usr/local/cpanel/bin/dcpumon >/dev/null
2>&1
Leave a Comment
* Your comment will be published after approval.
Comments
0No comments yet. Be the first to comment!