Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 377 Bytes

README.md

File metadata and controls

23 lines (20 loc) · 377 Bytes

go-cron

Simple golang wrapper over github.com/robfig/cron and os/exec as a cron replacement

Usage

$ go-cron "* * * * * *" /bin/bash -c "echo 1"
new cron: * * * * * *
executing: /bin/bash -c echo 1
1
executing: /bin/bash -c echo 1
1
executing: /bin/bash -c echo 1
1
executing: /bin/bash -c echo 1
1
^C(0x4ed9b0,0x56ebf0)
Stopping
Waiting
Exiting