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

Well now...I might be able to use this. I use Linux like...every...year.

A system administrator often needs to run a command repeatedly in a certain periods of time. Often such tasks can be easily completed with simple cron commands. In most of the cases this should work, but the shortest period which you can run cron command is every 1 minute. Believe it or not, in many cases this is too slow.

In this tutorial, you will learn a simple scripting techniques to monitor or keep a eye on a particular command in continuously running state similar to top command (continuously monitor the process and memory utilization) for every 3 seconds by default.

We will not stop to discuss the reasons, why you would need to run commands this often. I believe everyone has different reasons for that in their daily jobs or even at home PCs and laptops. 

Read more here.

Da Boss!

Website: www.digitalsmind.com Email: This email address is being protected from spambots. You need JavaScript enabled to view it.

Latest Content

  • iOS 11 is causing massive battery drain problems
    Written by

    Da Boss!

    iOS 11 is causing massive battery drain problems Sometimes, it's a good thing to just wait for the…
    Read more...
  • Meth found in 7-Up in Mexico
    Written by

    Da Boss!

    Meth found in 7-Up in Mexico Meth in 7-Up. What's next? 
    Read more...
  • ASUS B250 Mining Expert LGA 1151 Motherboard - supports up to 16x GPU, Mining Mode BIOS Optimization
    Written by

    Da Boss!

    ASUS B250 Mining Expert LGA 1151 Motherboard - supports up to 16x GPU, Mining Mode BIOS Optimization Ya know, if I was that into Mining I would…
  • CCleaner for Windows "Hacked" - Hackers Hid Backdoor
    Written by

    Da Boss!

    CCleaner for Windows "Hacked" - Hackers Hid Backdoor Welp...I'm s****! I use CCleaner all the time. So much…
    Read more...
  • Introducing Project “Honolulu”, our new Windows Server management experience
    Written by

    Da Boss!

    Introducing Project “Honolulu”, our new Windows Server management experience This looks pretty cool! I could see myself using it.
    Read more...

Visit the Digitalsmind Video YouTube Page!

Did you know we have a video page on YouTube? 

Well... WE DO! 

Check us out! 

- Our Video page.