peep

package module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2019 License: MIT Imports: 13 Imported by: 1

README

peep

Build Status MIT License GoDoc

peep a process

Description

Watch a process using $PID and execute specified command for notification when finished. It can also watch a remote command.

Installation

go get
% go get github.com/Songmu/peep/cmd/peep
% go get github.com/Songmu/peep/cmd/peep-notify
homebrew
% brew install Songmu/tap/peep
using ghg
% ghg get Songmu/peep

Built binaries are available on gihub releases. https://github.com/Songmu/peep/releases

Synopsis

Easy Usage
% peep [-H user@host -p $PORT] $PID -- peep-notify slack

Custom Notification Script
% peep [-H user@host -p $PORT] $PID -- /path/to/your-notification-script

Commands

  • peep
    • main program
  • peep-notify
    • bundled command to notify easily which supports slack, pushpullet and mac desktop notification.

Result JSON

The custom notification script accepts a result JSON via STDIN that reports command result like following.

{
  "user": "Songmu",
  "command": "perl -E say $$; sleep 10",
  "startAt": "2018-12-31T17:29:56+09:00",
  "endAt": "2018-12-31T17:30:07+09:00",
  "host": "localhost",
  "pid":20028
}

See Also

Author

Songmu

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(args []string) int

Run the peep

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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