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

  • Fecal Bacteria Found In Drinks Sold By Major Fast Food Restaurants Like McDonald's
    Written by
    Fecal Bacteria Found In Drinks Sold By Major Fast Food Restaurants Like McDonald's Welp, there goes the "yes" when I am asked if…
  • Capture amazing fireworks shots with your iPhone (and Android)
    Written by
    Capture amazing fireworks shots with your iPhone (and Android) So tonight is the night we here in the U.S.…
    Read more...
  • Work From Home In 2017: The Top 100 Companies Offering Remote Jobs
    Written by
    Work From Home In 2017: The Top 100 Companies Offering Remote Jobs I work from home, the can, the bedroom, the front-yard,…
    Read more...
  • Microsoft delays its Windows 10 Timeline feature
    Written by
    Microsoft delays its Windows 10 Timeline feature When you have a piece of code in front of…
    Read more...
  • Refurbished: Microsoft Xbox One S 1TB Console - Madden NFL 17 Bundle - 182.00 (WSL)
    Written by
    Holy cow! 182.00 for the latest and greatest! Damn... if…
    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.