How do i run a cronjob for drupal???

Discussion in 'Drupal' started by greatness008, Aug 2, 2007.

  1. #1
    plz help...thx
     
    greatness008, Aug 2, 2007 IP
  2. nks

    nks Well-Known Member

    Messages:
    1,602
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    160
    #2
    If you are using cPanel, simply login and then click on CronJobs.

    From there, you should be able to schedule the time at which cron jobs are performed.

    for example,
     
    nks, Aug 2, 2007 IP
  3. greatness008

    greatness008 Well-Known Member

    Messages:
    1,099
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    145
    #3
    so do i put that in the cpanel line or do i put this:

    http://mydomain.com/cron.php

    plz let me know thx...i just need it to run every 1/2 hr...
     
    greatness008, Aug 2, 2007 IP
  4. nks

    nks Well-Known Member

    Messages:
    1,602
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    160
    #4
    you need to use wget command or php command to initiate the cron.php file
     
    nks, Aug 3, 2007 IP
  5. Permoney

    Permoney Active Member

    Messages:
    360
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    70
    #5
    minutes: 30
    hours: every hours
    months: every months
    days: every days:
    weekdays: every week days

    command: php /home/siteuser/www/admin/cron.php

    Change siteuser with your ftp user.

    it will run every 30 minutes.

    and also I have given an example in this thread
    http://forums.digitalpoint.com/showpost.php?p=3878332&postcount=6
     
    Permoney, Aug 3, 2007 IP
    nks likes this.
  6. jGirlyGirl

    jGirlyGirl Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    You could also install the Poormanscron module. It allows you to set the cron settings in Drupal and you can force a cron to run whenever you want from the admin/logs/status page.

    http://drupal.org/project/poormanscron
     
    jGirlyGirl, Aug 3, 2007 IP
  7. greatness008

    greatness008 Well-Known Member

    Messages:
    1,099
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    145
    #7
    i need something more detailed plz
     
    greatness008, Aug 4, 2007 IP
  8. trichnosis

    trichnosis Prominent Member

    Messages:
    13,785
    Likes Received:
    333
    Best Answers:
    0
    Trophy Points:
    300
    #8
    if you are having cpanel, use cron job link.

    add

    command: php /home/siteuser/www/admin/cron.php
     
    trichnosis, Aug 4, 2007 IP
  9. greatness008

    greatness008 Well-Known Member

    Messages:
    1,099
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    145
    #9
    i tried that trichnosis

    what exactly do i have to put in for the following?

    php /home/siteuser/www/admin/cron.php

    for "/home" ?? do i just leave it saying home?

    siteuser is ftp user rite?

    www is that "http://www.mysite.com"

    do i just leave "admin/" as it is??

    plz let me know thx..

    this has been bugging me for the past two days

    thx again :)
     
    greatness008, Aug 4, 2007 IP
  10. Permoney

    Permoney Active Member

    Messages:
    360
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    70
    #10
    php /home/siteuser/www/admin/cron.php

    just change "siteuser" with your "ftp user" and "admin/cron.php" with your page located.
     
    Permoney, Aug 4, 2007 IP
  11. greatness008

    greatness008 Well-Known Member

    Messages:
    1,099
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    145
    #11
    i tried that...still didnt work???? what do i put in the

    www???

    is it the ftp.mysite.com

    or

    www.mysite.com???
     
    greatness008, Aug 4, 2007 IP
  12. Permoney

    Permoney Active Member

    Messages:
    360
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    70
    #12
    can you say your ftp user and page path which you want to run?
     
    Permoney, Aug 4, 2007 IP
    greatness008 likes this.
  13. greatness008

    greatness008 Well-Known Member

    Messages:
    1,099
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    145
    #13
    thx for your help permoney however i called my host and i think its fixed...:)

    ill let u know if its not...green rep added friend
     
    greatness008, Aug 4, 2007 IP