Skip to content

fundor333/crontab-dotbot

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

crontab-dotbot

Plugin for dotbot to edit and sync crontab without deleting or editing manual added cronjob, only manage dotbot cron.

Installation

  1. Add crontab-dotbot as a submodule of your dotfiles repository.
git submodule add https://github.com/fundor333/crontab-dotbot.git
  1. Modify your install script to enable the crontab-dotbot plugin.
"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" --plugin-dir crontab-dotbot -c "${CONFIG}" "${@}"

Usage

The plugin adds one directive use with crontab with two keyword:

  • cron: The crontab regex
  • command: The command to run For example:
- crontab:
  - cron: 0 * * * *
    command: echo "Hello world"