Monitor the Result of a Command
Tagged with: command, loop, monitor, result, sleep, while
Monitor the result of some command by looping it an infinite while loop. To quit, press Ctrl+C. Thanks to Sreenath for this tip.
while [ 1 ]; do ls -l; sleep 2; done
October 11th, 2008 10:11
There’s a better one… watch(1)
Hmm.. if you’re on a laptop and you want to know how much its heating up
$ watch acpi -V
How’s the network doing?
$ watch ifconfig eth0