The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cron jobs not sending notification emails

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

  1. bluecup

    bluecup Member

    Joined:
    May 30, 2014
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page