I googled a bit, and I think I have this right (it seems easy enough) but I don't deal with cron ever (well, yearly maybe) so I wanted to make sure this is right the first time.

I want to patch the servers over the weekend.  I have "overnight" (5am) and "afternoon" (3pm) servers so I need 2 schedules.

Is this correct?

* 5 * * 6,0
* 15 * * 6,0


Thanks!

Answer Summary:
Cancel
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Community Chosen Answer

2

It looks correct. There is an online generator/checker for crontab jobs:

http://cron.nmonitoring.com/cron-generator.html

Answered 02/07/2013 by: Timi
Seventh Degree Black Belt

Please log in to comment

Answers

1

Is that first asterisk 'every minute'?

Put the values into the crontab sandbox (www.CronBuddy.com) and you will see a list of the run times.

 

Answered 02/11/2013 by: mlbx
White Belt

  • That site is exactly what I was looking for. I changed it to 0 5 * * 6,0. Thanks!
  • For others who might find this post, that crontab sandbox is now at www.dataphyx.com
  • This crontab trainer/tutorial now has its own domain at www.cronsandbox.com
Please log in to comment
Answer this question or Comment on this question for clarity

Share