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 fires out of common setting

Discussion in 'General Discussion' started by jmpsoares, Jan 30, 2011.

  1. jmpsoares

    jmpsoares Registered

    Joined:
    Jan 30, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hi!

    I have a cron in my cpanel like this:
    php /home/domain/public_html/cux/cuxcron.php >/dev/null

    Common Setting:
    0 1 25 * *

    Every 25th day, I receive a scheduled email, as expected.
    Thereafter, the cron runs randomly, and I get more emails on other days, at any hour / minute.
    Have you any idea what could cause this?

    Thank you
    Jorge
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Hello Jorge,

    Are you certain that no other cron task is set to run this cron besides the one you have scheduled? Could you cull the logs at /var/log/cron and check for that cron to see the times it is running to give us some examples?

    Code:
    grep cuxcrom.php /var/log/cron
    Please try not to revise the times and dates it is running nor the actual paths being reported for the user. I know oftentimes people revise entries to hide the username, but we need to see if the username running it differs from the normal user (such as root running it or some other user).

    Also, please check that user's crontab entry to see if there might somehow be another cron entry that isn't showing up in cPanel:

    Code:
    cat /var/spool/cron/username
    You might even grep the crons all together for any other entries on any other account(s):

    Code:
    grep cuxcron.php /var/spool/cron/*
    Thanks.
     
Loading...

Share This Page