8000 GitHub - anarcher/go-cron: Simple cron over `github.com/robfig/cron` and `os/exec` as a cron replacement · GitHub
[go: up one dir, main page]

Skip to content
< 7FFF header class="root__q6pgdo HeaderMktg header-logged-out fullWidth__R5BAbe" role="banner" data-marketing-header="true" data-color-mode="dark" data-light-theme="light" data-dark-theme="dark">

Navigation Menu

anarcherPublic

About

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

Resources

Stars

6 stars

Watchers

1 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

Repository files navigation

go-cron

Circle CI

Usage

Docker

$docker run anarcher/go-cron -h                            
Usage of go-cron:
    -cpu=4: maximum number of CPUs
    -file="crontab": crontab file path
$ docker run go-cron -file=crontab                                                              
2015/06/18 07:53:38 Add cron job spec:*/1 * * * * cmd:echo "hello world!" err:<nil>
2015/06/18 07:53:38 Add cron job spec:*/1 * * * * cmd:echo "hello" ; sleep 1 ; echo "world" err:<nil>
2015/06/18 07:53:38 Start runner
2015/06/18 07:53:39 cmd:echo "hello world!" out:hello world! err:<nil>
2015/06/18 07:53:40 cmd:echo "hello world!" out:hello world! err:<nil>
2015/06/18 07:53:40 cmd:echo "hello" ; sleep 1 ; echo "world" out:hello world err:<nil>
^C2015/06/18 07:53:40 Got signal:  interrupt
2015/06/18 07:53:40 Stop runner
2015/06/18 07:53:40 End cron

About

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

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

0