Skip to content
Snippets Groups Projects
Select Git revision
  • ad2ee6961e86e54d19b9b9ff2bb2d308ca3be1a0
  • master default protected
  • spahan-merge
  • spahan
  • v1.8-rc1
  • v1.7
  • v1.6.3
  • v1.6.2
  • v1.6.1
  • v1.6
  • v1.5.1
  • v1.5
  • v1.4a
  • v1.3
  • v1.2
  • v1.1
  • v1.0
17 results

chkcrontab

Kevin Lyda's avatar
Kevin Lyda authored
ad2ee696
History

chkcrontab

Build status

Crontab linter

chkcrontab is a script to check crontab files like those in /etc/cron.d and /etc/crontab. It tries to catch glaring errors and warn on suspect lines in a crontab file. Some valid lines will generate warnings. Certain silly yet valid crontab lines will generate errors as well.

Run this by doing:

chkcrontab crontab_file

Errors will cause a non-zero exit code. Warnings alone will not.

To see sample output for a bad crontab, run the following:

./chkcrontab ./tests/test_crontab

See the ./tests/test_crontab.disable crontab for how to disable warnings and errors.

Contributions

Contributions are welcome! Please add unit tests for new features or bug fixes. To run all the unit tests run ./setup test.

Unit tests are run on `Travis`_ for all supported python versions.

The main site for this is on code.google.com with a backup site at github. Use whichever is convenient, the maintainer will push accepted patches to both.