0.3.3 • Published 7 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.xx
watchdoge config password xxxx
watchdoge config service qq
. As Gmail has so many authorization to access, watchdoge only supportqq
email and163
email by now. defaultservice
isqq
.watchdoge config mode all
.
- Property
mode
has 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. qq
email and163
email is preset, you can add other email by configuringhost
with email server address,port
with email ssl protocol port,service
withnone
, for example Gmail:watchdoge config service none
watchdoge config host smtp.gmail.com
watchdoge config port 465