Library and CLI for working with multiple cron jobs within a single cron table
Project description
Library and CLI for working with multiple cron jobs within a single cron table
Example
# The following examples assume you have the following example
# crontab file jobs.tab. Note that due to the way the examples
# are laid out, they will not run in the order shown below.
#
# jobs.tab contents:
# # [Frequent Job]
# * * * * * echo "This runs frequently"
#
# # [Specific Job]
# 1 2 3 4 5 echo "This runs... oddly specifically
# Add a job to the crontab
cronberry add jobs.tab
# Add a specific job to the crontab
cronberry add jobs.tab --title "Specific Job"
# Remove a job from the crontab
cronberry remove "Specific Job"
# Clear the current crontab
cronberry clear
# Save the current crontab to a file
cronberry save "saved.tab"
# Get the specific job with the given title, from a dif
cronberry job "Frequent Job"
# Returns:
# * * * * * echo "This runs frequently"
# Get all the job titles from the crontab
cronberry jobs
# Returns:
# Frequent Job
# Specific Job
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cronberry-2.0.0.post0.tar.gz
(16.2 kB
view hashes)
Built Distribution
Close
Hashes for cronberry-2.0.0.post0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb58b5f6e1f1aa345e8d5022a5889299bf5c0b89d70fb00ca0c7b7ca3d72c78d |
|
MD5 | 819236eeb8908160f4723f122da70fe8 |
|
BLAKE2b-256 | 0db9438b03c4366993c708f84d8899b7a41df11599f04bf49a4c8bf065d36723 |