Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

script to generate crontab syntax from clean human-friendly input?

Is there a tool or scripting language that will allow me to create a crontab-syntax output after supplying a human-friendly specification or initialization file?

For example:

 when: every 2 hours
 what: system('/path/to/flush_system_logs')

 when: 4:45pm every Wednesday
 what: system('/path/to/system_janitor_script')

I would like to supply a specification like that, and either have a process that can run cron from the specification, OR create a crontab file that stays in sync with the spec.

like image 733
dreftymac Avatar asked Sep 15 '26 08:09

dreftymac


1 Answers

Here are a few on-line crontab generators:

  • http://www.openjs.com/scripts/jslibrary/demos/crontab.php
  • http://crontab-generator.com/
  • http://www.clockwatchers.com/cron_tool.html
  • http://www.htmlbasix.com/crontab.shtml
like image 54
Dennis Williamson Avatar answered Sep 17 '26 06:09

Dennis Williamson