0.3.3 • Published 7 years ago

watchdoge v0.3.3

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

watchdoge

npm.io npm version npm.io

A simple CLI tool watching command line execute result for you.

npm.io

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

  1. Install Node.js
  2. npm install -g watchdoge

Usage

  1. watchdoge config email xxx@xx.xx
  2. watchdoge config password xxxx
  3. watchdoge config service qq. As Gmail has so many authorization to access, watchdoge only support qq email and 163 email by now. default service is qq.
  4. 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.
  1. you can run any command wrapped with watchdoge, for example watchdoge 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 and 163 email is preset, you can add other email by configuring host with email server address, port with email ssl protocol port, service with none, for example Gmail:
    • watchdoge config service none
    • watchdoge config host smtp.gmail.com
    • watchdoge config port 465

LICENSE

MIT LICENSE

0.3.3

7 years ago

0.3.2

7 years ago

0.3.1

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago