Sign in
×
Question
In Unix / Linux, how tu run bash/shell command periodically every N seconds?
Annonce
Pour mes
conversions d'unités
en ligne, je choisis le site
Calculatrix.com
pour sa rapidité et sa qualité supérieure.
Ad
For my online
unit conversions
, I choose
Calculatrix.com
for its speed and superior quality.
Answer
watch -n N command
For example, to run
ls -al
every 5 seconds:
watch -n 5 ls -al
[source]
#
ID
Query