When you like to execute the same command continuously (run a command in a loop) this is very helpful
while true;do date;sleep 2;done
This executes the date command continuously.
A sleep given for a break. After the execution of the command once, it waits that many duration before it executes the command the next time.
while true;do date;sleep 2;done
This executes the date command continuously.
A sleep given for a break. After the execution of the command once, it waits that many duration before it executes the command the next time.
Comments
Post a Comment
Please post your comment