Nov 22 2013
Repeating a unix command every X seconds
The watch command can be used to repeat a command every X seconds.
Examples:
Monitor Disk Usage (updated per second)
watch -n1 df -h
Print Hello World (every second)
watch -n1 echo “Hello World”
Reference:
http://unix.stackexchange.com/questions/10646/repeat-a-unix-command-every-x-seconds-forever
Recent Comments