go-cron

command module
v0.0.0-...-af1f542 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2015 License: GPL-2.0 Imports: 14 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Godeps
_workspace/src/github.com/namsral/flag
Package flag implements command-line flag parsing.
Package flag implements command-line flag parsing.
_workspace/src/github.com/robfig/cron
This library implements a cron spec parser and runner.
This library implements a cron spec parser and runner.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL