Skip to main content

A tool to detect crontab errors

Project description

Crontab linter.

chkcrontab.py 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.py 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.py ./tests/test_crontab

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

CONTRIBUTIONS

Please add unit tests for new features or bug fixes. To run all the unitests run ./setup test.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
chkcrontab-1.1.tar.gz (18.0 kB) Copy SHA256 hash SHA256 Source None May 3, 2012

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page