Skip to main content

A tool to detect crontab errors

Project description

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.

Project details


Download files

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

Source Distribution

chkcrontab-1.2.tar.gz (22.1 kB view details)

Uploaded Source

File details

Details for the file chkcrontab-1.2.tar.gz.

File metadata

  • Download URL: chkcrontab-1.2.tar.gz
  • Upload date:
  • Size: 22.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for chkcrontab-1.2.tar.gz
Algorithm Hash digest
SHA256 4ad456601e363166c5aa20aef1a51c05cf55bb84374a4f0070d5bdec3c3cc9b1
MD5 421c9a2e5705ead83c8ab0ea36df2a8e
BLAKE2b-256 4ea89c9a37b5776c56fd400028d28435ef5677a88d0b9fe2604bfd4185620dbd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page