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!

None of my Cronjobs are working :(

Discussion in 'General Discussion' started by Bigzed, Mar 10, 2005.

  1. Bigzed

    Bigzed Registered

    Joined:
    Feb 19, 2005
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    151
    Hi Guys,
    I've tryed the following ways to start my Cronjob: (Commands)
    /home/public_html/getdata.php?cron=yes
    /public_html/getdata.php?cron=yes
    http://www.fullpath.com/morpheus/getdata.php?cron=yes
    php -q /public_html/getdata.php?cron=yes
    php -q /home/morpheus/public_html/getdata.php?cron=yes

    What Is the Problem? Don't move the Thread in the Cpanel Beginners Forum - nobody in there helps.

    Thank you,
    Bigzed.
     
  2. DigitalN

    DigitalN Well-Known Member

    Joined:
    Sep 23, 2004
    Messages:
    420
    Likes Received:
    1
    Trophy Points:
    168
    Try

    0 0 * * * /usr/bin/php -q /home/morpheus/public_html/getdata.php?cron=yes

    To run the job at midnight daily.

    From command line, does this actually do anything or provide the error for you?

    # /usr/bin/php -q /home/morpheus/public_html/getdata.php?cron=yes

    Does

    www.domain.com/getdata.php?cron=yes actually do what it is intended to do?

    What isn't working, do you get an error from when the cron job runs?

    Add the email address into the cron job file, to send the resut to you - In cpanel or directly into the cron file via (add this to the top of the file)

    # crontab -e -u $user

    MAILTO="you@domain.com"
     
  3. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,574
    Likes Received:
    3
    Trophy Points:
    343
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    No offence, but you did/were getting help in that thread. :)

    And on that note, when a thread is moved it is done for a reason, please do not open a second one as from this point on they will be closed if done so.

    Also note clients of hosting companies having questions should be using their provider for support as it is the hosting companies responsibility to supply support to their clients.
     
    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