I also turn to http://cronwtf.github.io when I need to sanity-check my crontab, which is a little more verbose and includes JSSpec tests.
Cron commands to plain English
11–20 of 28 posts
This is nice.
Re: Cron commands to plain English
#12Not bad,
each line in my cron has somthing lke that next to it :)
Re: Cron commands to plain English
#13Does not understand this syntax: "1-56/5 * * * * foo"
What does that do?
CronWTF doesn't understand it either and that one even has a cat!
Re: Cron commands to plain English
#14Re: Cron commands to plain English
#15Also see crontab2english:
http://interglacial.com/pub/crontab2english.html
Re: Cron commands to plain English
#16Re: Cron commands to plain English
#17For visualizing a large quantity of crons, I'd recommend something akin to https://github.com/federatedmedia/cronviz which will graphically show when jobs are scheduled to run.
Re: Cron commands to plain English
#18I built the opposite version of this, convert plain English to cron commands: http://thomseddon.github.io/cronstring
Re: Cron commands to plain English
#19I built the opposite version of this, convert plain English to cron commands: http://thomseddon.github.io/cronstring
Awesome, now you have a test suite
assert(cronchecker(cronstring(input)) == input)Re: Cron commands to plain English
#20OK, so I gave it this:
8-59/30 * * * * do_something
It replied: The command do_something will execute
the 8th through 59/30th minutes of
every hour every day.
That's a pretty poor description of something that will run at 8 and 38 minutes past the hour, every hour of every day.Not impressed - seems overly simplistic.