Somebody asked in Debian group about speed monitoring application. There is a good application for this called conky or watch.
Conky is good for desktop decoration. And watch is pretty in Console. For a lightweight portable script, you need to consider to remove any conky/watch dependency.
Actually we can simplified the process for our own use. Using bash script only, and get rid of conky, to make our monitoring script more transparent.
Monitor in loop
The basic of monitoring is pool a data result for each monitoring interval.
You can do this from bash with this simple while loop.
I know it is weird to have a date while sleeping.
Sample Script, Net Speed
I remember two months ago I have found bash script, combined with answer from stackoverflow, I have rewritten this script for my own purpose.
This script utilize statistic form
/sys/class/net/ for dzen2 feed.
With slight modification. I remove the dzen stuff. And change the echo to printf. And prepend carriage return.
You can see the result in figure below
Now you can use, modify, and extend this script for your own purpose.
Thank you for reading
- December 2016
- November 2016
- October 2016
- September 2016
- August 2016
- July 2016
- Install Awesome WM in Debian
- Install Awesome WM in Arch Linux based Distribution
- Jekyll Installation on Debian
- Jekyll Installation on Arch/Manjaro
- Install Yaourt, the AUR Helper
- Using Git for Daily Repo Updating
- Analyze Services in Linux Boot Process
- Step by Step Guidance to be a Webcoder
- The Difference Between DE, Shell, WM and Compositor
- Elapsed Time, Yet Another Jekyll Liquid Port
- Create Stripes Using Inkscape to Decorate Blog Post
- Jekyll Post Archives Without Plugin
- Meet Our Friend, Regular Expression
- May 2016
- April 2016
- March 2016
- February 2016