Cron Jobs, Quick Question

Discussion in 'Site & Server Administration' started by gobbly2100, Apr 16, 2008.

  1. #1
    Hey,

    In my cPanel where I can set up cron jobs, what does the star sign represent? (*)

    I am trying to set up a cron job that executes daily at 9am

    [​IMG]

    Is this correct for what I want to do?
     
    gobbly2100, Apr 16, 2008 IP
  2. milesbparty

    milesbparty Peon

    Messages:
    148
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The "*" means every value possible for the setting. So "script.php" will run at 9:00 am every day of the week, every month, on every weekday. Basically the script will run every day at 09:00, no matter what.
     
    milesbparty, Apr 16, 2008 IP
  3. gobbly2100

    gobbly2100 Banned

    Messages:
    906
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Oh I get it now, thank you for the reply!
     
    gobbly2100, Apr 16, 2008 IP
  4. evilgreenmonkey

    evilgreenmonkey Peon

    Messages:
    26
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You may also like to know that you can do fractions of *

    e.g. To run a script every 15 minutes rather than every minute you can use:
    */15 * * * * GET http://www.myscript.com/script.php
     
    evilgreenmonkey, Apr 18, 2008 IP