Cronny is a pure-Rust cross-platform foreground Cron Job handler. It's a foreground program that handles cron jobs.
Cronny takes one parameter - the file path. For example:
$ cronny file.cron
The Cronny syntax is split into two parts:
- the CRON Expression
- the command expression
These parts are split with
::
.
* * * * * * :: /path/to/script.sh
You can also use literal commands:
* * * * * * :: touch $(date).done
Please note that while it's possible to run it from anywhere and use relative paths, it's recommended to keep the path absolute (and if possible, user-agnostic, such as don't use $HOME
etc.)
Different platforms have different ways of background services. The best option is to use the platform's process handler, such as SystemD/OpenRC in Linux, LaunchD in macOS, or the equivalent in Windows (if there's any).
Alternatively, you can also use the &
syntax on POSIX-compliant shells, such as:
$ cronny file.cron &
This will keep it running in the background.
Yes, unlike most CRON Job Handlers, Cronny does log it. You can, however, disable logging entirely, by setting the CRNY_LOG
to 0
.
Probably. Probably not. It's meant as a personal project, and is not meant to be used in production.
Why not?
Cronny is licensed under Apache 2.0 license.