Skip to content

A 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.

License

Notifications You must be signed in to change notification settings

jtprogru/go-monkill

Repository files navigation

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

About

A 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.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published