Fri 5 Jan 2007
Linux Tip #5: “watch” your shell scripts
Posted by dkaz under Technology, Linux
Would you like to create a lively, “top”-like output from some of the monitoring commands in your toolbelt?
“watch” can be of help here, as it can poll your command every X seconds and render its output to full screen.
Try “watch -n1 date” for a demo.
NAME
watch - execute a program periodically, showing output fullscreenSYNOPSIS
watch [-dhv] [-n] [–differences[=cumulative]] [–help]
[–interval=] [–version]
