watch is a useful utility to execute a command on a timed basis, and exists in many Linux shells.
To install on MacOS with brew:
brew install watch
To repeat a command:
watch -n 1 somecommand
… to repeat the command every 1 second
Articles, notes and random thoughts on Software Development and Technology
watch is a useful utility to execute a command on a timed basis, and exists in many Linux shells.
To install on MacOS with brew:
brew install watch
To repeat a command:
watch -n 1 somecommand
… to repeat the command every 1 second