2

! Duplicates questions 43733


Is there any validator for training purposes where you can enter cron syntax like

0 0/5 9-17 * *

and it will print out:

  • more detailed errors and suggestions
  • pronounced, readable text format (Option -h ;) )
    • e.g. "every 5 hours between 9th and 17th each month"
3

3 Answers 3

2

A command line tool that gives you a readable description of the cron expression is available at https://github.com/mrferos/hcron (implemented in JS for node.js). However, it doesn't do any validation or recommendations.

1
  • thx for the hint crontab.guru ; that's what I was looking for ;) Dec 6, 2015 at 16:50
4

You can use crontab -e which will open an editor allowing you to edit cron jobs. It will report errors in case you mistyped the cron job line.

3
  • shure, but I need something for really stupid guys who want to learn what they enter ;) (sometimes it's boring teaching this again and again to the trainees Aug 15, 2012 at 12:31
  • @childno.de: It seems that you did not describe your question properly in the first time.
    – Khaled
    Aug 15, 2012 at 12:43
  • yes you're right, I'm sorry about that Aug 15, 2012 at 12:51
3

I highly recommend http://crontab.guru for this. Using your example above, it tells me:

“At every 0th minute past the 0, 5, 10, 15 and 20th hour on the 9, 10, 11, 12, 13, 14, 15, 16 and 17th of every month.”

It also give hints for each field you're editing as well as general cron tips with informative links for configuring cron on servers.

0

Not the answer you're looking for? Browse other questions tagged or ask your own question.