7 stable releases
2.7.0 | Aug 10, 2024 |
---|---|
2.6.0 | Jul 22, 2024 |
2.5.0 | Jun 26, 2024 |
2.3.0 | May 12, 2024 |
#984 in Command line utilities
117 downloads per month
125KB
3K
SLoC
cronrunner
Run cron jobs manually.[^1]
# m h dom mon dow command
@reboot /usr/bin/bash ~/startup.sh
## Track disk space.
30 4 * * * echo $(date) $(df -h | grep "/dev/sda3") >> .disk-space.txt
FOO=:)
0 12 * * * echo $FOO
### Housekeeping
## Prune dangling Docker images.
@daily docker image prune --force
Installation
Directly
$ wget https://github.com/qrichert/cronrunner/releases/download/X.X.X/cronrunner-X.X.X-xxx
$ sudo install ./cronrunner-* /usr/local/bin/cronrunner
$ sudo ln -s /usr/local/bin/cronrunner /usr/local/bin/cr
Manual Build
System-wide
$ git clone https://github.com/qrichert/cronrunner.git
$ cd cronrunner
$ make build
$ sudo make install
Through Cargo
cargo install cronrunner
cargo install --git https://github.com/qrichert/cronrunner.git
[^1]: cronrunner used to be a Python project, see 1.1.4.