1.0.0 • Published 8 years ago

croncli v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

croncli

cron register script

Getting Started

$ npm install -g croncli

Usage

$ croncli -s "* * * * * *" -c "ls hoge/" -t "Asia/Tokyo"
Input schedule : "* * * * * *"
Input command  : "ls hoge/"
2016/10/03 18:02:28 $ ls hoge/
hoge.txt

2016/10/03 18:02:29 $ ls hoge/
hoge.txt

2016/10/03 18:02:30 $ ls hoge/
hoge.txt

...

Parameter Description

optionsrequiredshort optionlong optiondescriptionexample
scheduletrue-s--schedulecron schedule$ croncli -s "* * * * * *" -c "node /tmp/hoge.js"
commandtrue-c--commandcron execute command$ croncli -s "* * * * * *" -c "node /tmp/hoge.js"
time zonefalse-t--timeZonecron time zone$ croncli -s "* * * * * *" -c "node /tmp/hoge.js" -t "Asia/Tokyo"
helpfalse--helpcommand usage description$ croncli --help

Reference