0.3.3 • Published 8 years ago
watchdoge v0.3.3
watchdoge
A simple CLI tool watching command line execute result for you.

After configuring your email address, you can just run any command wrapped with watchdoge, and you will receive email when terminal has output.
You need Node.js enviroment to use this tool.
Installation
- Install Node.js
npm install -g watchdoge
Usage
watchdoge config email xxx@xx.xxwatchdoge config password xxxxwatchdoge config service qq. As Gmail has so many authorization to access, watchdoge only supportqqemail and163email by now. defaultserviceisqq.watchdoge config mode all.
- Property
modehas 3 valid value:end(default): you will only receive one email with entire output when command execute finish.all: you will receive email with output everytime terminal has stdout or stderr, and one email when command execute finish.error: you will receive email with output everytime terminal has stderr, and one email when command execute finish.
- you can run any command wrapped with
watchdoge, for examplewatchdoge ls,watchdoge ping -c 10 www.bing.com.
Further
- All your config is store in
~/.watchdogerc, it is a JSON format file. You can edit this file by yourself, just keep JSON format. qqemail and163email is preset, you can add other email by configuringhostwith email server address,portwith email ssl protocol port,servicewithnone, for example Gmail:watchdoge config service nonewatchdoge config host smtp.gmail.comwatchdoge config port 465