Friday, January 16, 2009
Execute command at regular intervals
Posted on 8:14 AM by Unknown
If you anytime need to execute a command once and again and again, you can use watch and tell it to execute the Linux command in a give interval.The syntax of the command is:watch [option(s)] commandThe default interval of execution of the given command is two (2) seconds, but you define a different interval using the option -n.Here are two useful uses of watch.watch -n 5 free -mWhich will show
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment