Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Cron jobs not sending notification emails

Discussion in 'E-mail Discussion' started by bluecup, Aug 8, 2014.

  1. bluecup

    bluecup Member

    Joined:
    May 30, 2014
    Messages:
    10
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Website Owner
    In the cPanel, I have set up cron jobs and also added a new cron email to receive notifications but I haven't been receiving any notification after the cron job has been run.

    I have set up a cron job like below:
    Code:
    /usr/bin/wget -q -O /dev/null "http://www.mytest.net/jobs/jobs?id=7784a49273ceb07a7"
    The cron job runs fine. I am just not receiving the email notification. Is it due to redirection to /dev/null?
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,726
    Likes Received:
    1,883
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    Do you have root access to this server? If so, you can browse to /var/spool/cron/$username to ensure the "MAILTO" entry at the top of the file uses the correct contact email address. Also, you should remove the /dev/null entry from the cron job so the output is not discarded.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice