-
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
-
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...
-
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]
-
Thanks Advisor, I thought logically , didn't look into syntax part.
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|