Last active
April 19, 2024 09:33
-
-
Save denalena/f1989655af42b641684e09202dc4d981 to your computer and use it in GitHub Desktop.
a utility script to loop commands that run indefinitely - as a `watch` alternative
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
test -z "$1" && exit 1 | |
while true; do | |
"$@" | |
sleep 1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment