Skip to content

mengdu/gocrontab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gocrontab

Timed task management similar to Linux crond

Install

go install github.com/mengdu/gocrontab/cmd/gocrond@xxx
go install github.com/mengdu/gocrontab/cmd/gocron@xxx

Usage

1、Config crontab

demo.crontab

# say hello
* * * * * echo "Hello World!"
# print date
*/2 * * * * echo "Hi! at:$(date +%FT%T%z)"

2、Start gocrond

gocrond -c demo.crontab

3、Usage cli

gocron ls # show list of jobs
gocron exec <id> # manually executing jobs

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages