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

Post Reply
User avatar
Mazzz79
Site Admin
Posts: 47
Joined: Fri Feb 05, 2016 5:37 pm
Location: Sweden
Contact:

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

Post by Mazzz79 »

# while true; do clear; <command>; date; sleep 5; done

<command> = enter your command

sleep 5 = wait 5 seconds then repeat


Post Reply