Script to show alert when today's total download has exceeded 500mb, 1 gb, 1500mb and 1800mb

Hey,

I'm new to learning scripting with linux bash shell. And, I was thinking I'd learn linux by learning to solve a problem. So, I currently use a internet connection which allots me 2GB starting from 12:01 am in my timezone to 11.59pm. But, occasionally when I watch videos from youtube, my bandwidth runs out and I'm stuck with zero internet. So, I was thinking it would be fantastic if I could write a linux script which would show me an alert on my screen top right corner as and when every 500mb,1GB, 1500mb and 1800mb has been used up.

Would love to have your inputs for the same. :slight_smile:

You can find the network usage information in the Linux /proc filesystem.

So, I would write some code that sets timers and reads the required vars in the Linux proc filesystem related to network traffic.

Give it a try and post back!

And welcome to the forums.