ucron

command module
v0.0.0-...-13fc921 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2020 License: MIT Imports: 10 Imported by: 0

README

ucron

unprivileged cron aka ushi's cron

A cron implementation meant to be executed by unprivileged users. The project aims to provide a hassle free solution for running cron inside a docker container.

Install

Download a build from the Releases page.

$ curl -LO https://github.com/ushis/ucron/releases/download/<version>/ucron
$ chmod +x ucron

Download the build from the latest release.

$ curl https://api.github.com/repos/ushis/ucron/releases/latest |
  jq '.assets | map(select(.name == "ucron")) | first | .browser_download_url' |
  xargs curl -LO
$ chmod +x ucron

Or install it via go get.

$ go get github.com/ushis/ucron

Usage

$ ucron path/to/crontab

Features / Design

  • No root required
  • Reads a single crontab from file or stdin
  • Logs all job output to stdout
  • Waits for all running jobs to complete on shutdown

Q&A

Is ucron capable of running multiple crontabs? Of course!

$ cat crontab1 crontab2 crontab3 | ucron -

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL