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 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
You can install this utility in the following ways:
go install github.com/jtprogru/go-monkill
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
git clone https://github.com/jtprogru/go-monkill
cd go-monkill
go install .
If it happened that you started using this utility, and you have feedback, please create issues or contact the Telegram chat jtprogru_chat.
- Michael Savin
- Ivan Anfilatov:
See LICENSE