|
2 years ago | |
---|---|---|
config | 2 years ago | |
configs | 2 years ago | |
debian | 2 years ago | |
website | 2 years ago | |
.gitignore | 2 years ago | |
build.sh | 2 years ago | |
config.go | 2 years ago | |
file_utils.go | 2 years ago | |
gogocron.go | 2 years ago | |
readme.md | 2 years ago | |
timing.go | 2 years ago |
Cron daemon with crontab syntax, small interval and execution timeout for each task. Report bugs here 21h@blindage.org.
You can find binary code in Releases tab or build code yourself.
Requires:
Installation:
$ wget https://git.blindage.org/attachments/b02e74bf-b000-4a62-978e-97f91c7f2a64 -O gogocron.deb
$ dpkg -i gogocron.deb
$ systemctl enable gogocron
$ systemctl start gogocron
This is a Go code. Install required libraries and build:
go get github.com/kr/pty
go get gopkg.in/yaml.v2
go build
Use traditional crontab syntax
runsecond // second
runminute // minute
runhour // hour
rundom // day of month
runmonth // month
rundow // day of week
timeout: 3h12m4s
Syntax:
env:
- TESTVAR="test variable"
Syntax:
commands:
- whoami
- sleep 3
- head -c 20 /dev/urandom |base64
- ls
- echo $TESTVAR
logtype
can accept:
---
name: "Print base64 of 20 random symbols"
runsecond: "*/5"
timeout: 10s
user: vlad
env:
- TESTVAR="test variable"
commands:
- whoami
- sleep 3
- head -c 20 /dev/urandom |base64
- ls
- echo $TESTVAR