chkcrontab /

Filename Size Date modified Message
76 B
Fixes to get versioning working.
1.6 KB
Need git to do a build.
2.0 KB
Tone down .pylintrc.
148 B
Add pypy test support.
226 B
Spel chek.
162 B
Add a contribution guide.
11.4 KB
Initial commit.
132 B
Script to run pylint and converage.
3.4 KB
Changes for RPM packaging; update readme.
2.0 KB
Language cleanup.
2.0 KB
Add logo.
36.7 KB
Make the -q switch more effective.
5.9 KB
Changes for RPM packaging; update readme.
111 B
Test for python 3.3.


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.

Output Description

The output of chkcrontab is described on the CheckCrontab wiki page. A link to it appears in the output if there were any warnings or errors. It also suggests ways to fix the reported issues.


Contributions are welcome! Please add unit tests for new features or bug fixes. To run all the unit tests run ./setup test. If you have tox installed, just run tox.

You can review coverage of added tests by running coverage run test and then running coverage report -m.

Note that tests are run on Travis for all supported python versions whenever the tree on github is pushed to.

The packaged version is available via pip or easy_install as chkcrontab. The project page is on pypi:

The source code is available in the following locations:

Pull requests on any of those platforms or emailed patches are fine. Opening issues on gitlab or github is easiest, but I'll check any of them.


For rpm distributions, ./ bdist --formats=rpm should make an rpm but currently dies due to not finding the chkcrontab.1 man page.

For Debian distributions there's an additional tool that might work.



  • Kevin Lyda: Who got burned one too many times by broken crontabs.