Last update: 2015-08-14. The up to date orginal is at Greg's wiki



[EnglishFrontPage] [TitleIndex] [WordIndex

Automatising crontab

  1. Do not tinker with crontab at all for the same kinds of a task: Make crontab execute a script that handles all cases sequentially.
  2. If necessary, reserve a part of the crontab that can be modified elsewhere, recreate only that very part you actually deal with.
  3. Use separate files, like /etc/cron.d/*.

  4. Get rid of parsing an existing crontab, re-create it entirely when needed.

    Good practice: Always write a configuration file instead of editing an existing one.


2015-08-01 04:08