Sunday, February 22, 2015

Linux run a command repeatedly



There is a simple thing to run a command repeatedly in the linux environment.
You can use “watch” command to do that,

>watch –n <time between repeats> <command>

Below you can see an example,

>watch –n 1 date

Using above command you can see your system time that change every seconds.
For more information please check below thread in askubuntu.

No comments:

Post a Comment