Run a script every n seconds
To run a script every n seconds, use the watch unix program
watch --interval=1 "ls -la"
The default interval is 2 seconds and the output is displayed fullscreen.
Written by Koh Choong Yong
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#