Cronjob?

Discussion in 'Site & Server Administration' started by bob25, Feb 1, 2010.

  1. #1
    I'm trying to setup a script and the instructions says:

    Run a cronjob on the file /auto/cron_config.php


    I've setup cronjobs before, but have a very limited knowledge, and it didn't mention a specific file. How do I do this?

    Thanks
     
    bob25, Feb 1, 2010 IP
  2. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #2
    You would have to tell it to use the php interpreter, so something like this in your crontab:

    php -q /home/username/public_html/auto/cron_config.php

    Note, you will need to use the full path to the file.
     
    RHS-Chris, Feb 1, 2010 IP
  3. FavouritesBlog

    FavouritesBlog Peon

    Messages:
    846
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3
    If you have cPanel you can setup cronjobs straight from your cPanel - At the bottom of your control panel " Cronjobs "
     
    FavouritesBlog, Feb 2, 2010 IP