Page 1 of 1

How to Run or Repeat a Linux Command Every X Seconds Forever

Posted: Fri Jul 16, 2021 6:25 pm
by Mazzz79
# while true; do clear; <command>; date; sleep 5; done

<command> = enter your command

sleep 5 = wait 5 seconds then repeat