Every translates english to crontab expression
every expression | crontab expression |
---|---|
every 2 minutes | */2 * * * * |
every 2 minutes on Fri | */2 * * * Fri |
every day at 3 pm | 0 15 * * * |
every hour in Jun on Sun,Fri | 0 * * Jun Sun,Fri |
every uses hashicorp hcl config structure.
every "2 minutes" {
run = "command >/dev/null 2>&1"
user = "ubuntu"
}
every "day at 3 pm" {
run = "command >/dev/null 2>&1"
user = "ubuntu"
}
every "hour in Jun on Sun,Fri" {
run = "command >/dev/null 2>&1"
user = "ubuntu"
}
-
every
cmd to run commands - support Everyfile to generate crontab file (hcl)
- read args to generate from input
- run jobs as specific user
- update crontab from config