DBAsupport.com Forums - Powered by vBulletin
Results 1 to 5 of 5

Thread: Crontab question

  1. #1
    Join Date
    Aug 2000
    Location
    Chicago IL
    Posts
    586
    Hello,
    I wanted to setup a script to run in crontab everyday except 7 days a week every hour.

    i know how to tell crontab at what specific time to start a job but how do i tell it to run every hour?

    thanks
    jigar

  2. #2
    Join Date
    Feb 2000
    Location
    Washington DC
    Posts
    1,843
    I'am not sure, But it should work. Set minutes column '60' and leave hours coloumn '*' and so the rest of the columns like month and week etc., depending on the days of the week you want to run...



  3. #3
    Join Date
    Jun 2000
    Posts
    417
    Yeah that should work, except I think cron is 0-59 and will never hit 60.

    59 * * * * /path/script

    or 0 to start at the bottom of the hour, 30 to run at the middle of the hour, you get the idea.

    Edit:

    Oh if you didn't want 7 days a week you would have to set the days column to whatever you wanted.

    [Edited by pwoneill on 12-21-2000 at 06:25 PM]

  4. #4
    Join Date
    Feb 2000
    Location
    Washington DC
    Posts
    1,843
    Thanks Advisor, I thought logically , didn't look into syntax part.

  5. #5
    Join Date
    Mar 2000
    Location
    CA
    Posts
    317
    Yes, you need to put 0 at minutes or 59 to make it to work every hour.
    Thanks
    Kishore Kumar

Posting Permissions

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


Click Here to Expand Forum to Full Width