Article 4R1SF [SOLVED] execute commands at a set given interval

[SOLVED] execute commands at a set given interval

by
StepNjump
from LinuxQuestions.org on (#4R1SF)
Would like to get two or three commands to be executed at a set interval in the terminal such as:

while true; do df -h /home/me && watch df -h /var; sleep 5; done

Only the first command is executed

I also tried with the watch -d -n 5 command but that doesn't work either...

Thank you.latest?d=yIl2AUoC8zA latest?i=LmHLDpNuRJM:Y5IGRp4m2xo:F7zBnMy latest?i=LmHLDpNuRJM:Y5IGRp4m2xo:V_sGLiP latest?d=qj6IDK7rITs latest?i=LmHLDpNuRJM:Y5IGRp4m2xo:gIN9vFwLmHLDpNuRJM
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments