Web Hosting Forums

Results 1 to 4 of 4

This is a discussion on Quick Question about CRON jobs in the Hosting Talk & Chit-chat forum
Hello everyone, I just have a quick and (hopefully) simple question about CRON jobs. 1) When creating a CRON job, if I want to have ...

  1. #1
    Loyal Client
    Join Date
    Sep 2005
    Posts
    2

    Quick Question about CRON jobs

    Hello everyone,

    I just have a quick and (hopefully) simple question about CRON jobs.

    1) When creating a CRON job, if I want to have it run every couple of hours, do I simply put a 2 in the "hours" field and leave everything else the same? It would end up looking like this:

    Minute Hour Day Month Weekday
    0 2 * * *

    Also, is there any way to see if the job itself is running properly?

    Thanks for answering my newbie questsions

    Barry

  2. #2
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    5,884
    A 0 in the minutes field and 2 in the hours field, as you've indicated, would run your job at 2:00 am every day. To run it every two hours use 0 */2 * * * (that's "*/2" in the hours field) to run it every two hours.

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  3. #3
    Loyal Client
    Join Date
    Sep 2005
    Posts
    2
    Thanks Jason - any chance you can you point me to a CRON tutorial where I can learn more about it?

  4. #4
    || $name ne 'R.Stiltskin'
    Join Date
    Jun 2003
    Location
    Tejas
    Posts
    2,414

    Post

    Quote Originally Posted by dkbtech
    ...CRON tutorial...?
    crontab man pages

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •