[WBEL-users] simple bash script

Plug n Play plugnplay@grandpacific.ph
Tue, 7 Dec 2004 15:34:00 +0800


Dear All,

First of all I’m not a script Enthusiast but wanted to automate something
simple and need some of your programming expertise.

I'm planning to write a simple bash script to get the bandwidth consumption
using ifconfig.

This is to avoid over usage of bandwidth with my hosting provider by setting
my bandwidth limit
(e.g. 30 gig). If I reach this 30 gig usage it will automatically trigger
the httpd to stop to stop
further transaction which can increase my bandwidth usage.

How will I do this? A five to ten line I think will do. :)

Thank you very much
Joey

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.806 / Virus Database: 548 - Release Date: 12/5/2004