A tool that automatically reruns a exited commands
rerun is a tool written in Go that automatically restarts the exited command and keeps running. It's like a simplified supervisor on a development PC.
Download binary from below link.
You can install using
go get -u github.com/shin1x1/rerun
Specifies the command you want to run after
rerun. Reruns the command after 10 seconds when the specified command exited. You can change the number of seconds in the interval with
# Reruns the command after 10 seconds $ rerun ./sample.sh # Reruns the command after a second $ rerun -s 1 ./sample.sh
If the command contains
-- before the command.
$ rerun -- kubectl get events -w