how to run shall command for every particular interval

try the 'watch' command.

Usage: watch [-dhntv] [--differences[=cumulative]] [--help] [--interval=<n>] [--no-title] [--version] <command>

so that:

watch -n1  command 

will run the command every second, forever

OP has asked for link to OS X version of watch: http://www.macports.org/

Comments

Popular posts from this blog

Rails Memcache issues

Rails working with multiple databases customize the generator | Rails, multiple databases, customize generator

Ruby on Rails 3.x Skip callback and validation and reset Callback | Ruby on Rails, Skip callback, validation, reset Callback