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

  • Remote Server Administration Tools for Windows 10
    Written by

    Da Boss!

    Remote Server Administration Tools for Windows 10 Download away!
    Read more...
  • How to make use of (Microsoft) Edge’s nifty reading features
    Written by

    Da Boss!

    How to make use of (Microsoft) Edge’s nifty reading features Not a fan of the Edge browser myself but a…
    Read more...
  • Whats new in Windows 10 Bash/WSL & Windows Console
    Written by

    Da Boss!

    Whats new in Windows 10 Bash/WSL & Windows Console I love how Microsoft is embracing Open Source with Windows 10.…
    Read more...
  • Activision announces 'Call Of Duty: World War II'
    Written by

    Da Boss!

    Activision announces 'Call Of Duty: World War II' So, it seems we are headed back to WW II…
    Read more...
  • WD Purple 1TB Surveillance Hard Disk Drive - 39.99 - WOOT Deal
    Written by

    Da Boss!

    WD Purple 1TB Surveillance Hard Disk Drive - 39.99 - WOOT Deal Only 15 hours left so if you want one you…
    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.