#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2001
    Posts
    68
    Rep Power
    13

    Setting up a cron job


    Hey. How would I set up a job to be run every 6 hours?

    Would:
    1 | 0,6,12,18 | * | * | *
    be correct?

    Thanks
  2. #2
  3. IT Dept Scapegoat
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2002
    Posts
    169
    Rep Power
    12
    Yes, it is correct.
  4. #3
  5. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,594
    Rep Power
    4207
    I guess this would work too
    Code:
    0    */6       *       *       *       /path/to/job
    Up the Irons
    What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
    "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
    Down with Sharon Osbourne

    "I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo

IMN logo majestic logo threadwatch logo seochat tools logo