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.

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:
    1
    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:
    18
    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,578
    Likes Received:
    3
    Trophy Points:
    38
    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.
     
Loading...

Share This Page