Skip to content

Latest commit

 

History

History
49 lines (36 loc) · 847 Bytes

README.md

File metadata and controls

49 lines (36 loc) · 847 Bytes

Cronus

A crontab parser that renders the result to a simple table.

Installation

Clone this repo and then run the following from the new directory:

$ pip install -e .

To run tests:

$ pip install -e .[test]
$ pytest

Usage

usage: cronparse [-h] crontab command

Parse and render a crontab

positional arguments:
  crontab     crontab to parse
  command     command to run

optional arguments:
  -h, --help  show this help message and exit

The 's in the command line are important to prevent any *s converting to the contents of the current directory.

$ cronparse '*/15 0 1,15 * 1-5' /usr/bin/find
minute          0 15 30 45
hour            0
day of month    1 15
month           1 2 3 4 5 6 7 8 9 10 11 12
day_of_week     1 2 3 4 5
command         /usr/bin/find