Skip to content

Latest commit

 

History

History
67 lines (50 loc) · 3.1 KB

README.md

File metadata and controls

67 lines (50 loc) · 3.1 KB

go-monkill

Go Reference Go Report Card GolangCI-lint build publish GitHub stars GitHub issues GitHub release (latest by date) Go report GitHub Linux LoC Donate

Very simple utility that allows you to run the desired command or script as soon as a certain process with a known PID completes correctly or with an error.

Example

Example running:

go-monkill watch --pid=12345 --command="ping jtprog.ru -c 4"

When process with PID 12345 will finish or be killed, go-monkill will run command ping jtprog.ru -c 4

Install

You can install this utility in the following ways:

From pkg.go.dev

go install github.com/jtprogru/go-monkill

Get binary

VERSION=v0.2.0 wget "https://github.com/jtprogru/go-monkill/releases/download/${VERSION}/go-monkill-darwin-amd64" -O /tmp/go-monkill
sudo mv /tmp/go-monkill /usr/local/bin/go-monkill
sudo chmod a+x /usr/local/bin/go-monkill

Get from source code

git clone https://github.com/jtprogru/go-monkill
cd go-monkill
go install .

Feedback

If it happened that you started using this utility, and you have feedback, please create issues or contact the Telegram chat jtprogru_chat.

Authors

License

See LICENSE