Roll Bandwidth script

Script to rollover bandwidth usage: PWSrollbandwidth V2.01
  Created - February 21, 2004 (V1.0)
  Modified - February 27, 2004 (V2.0)
        added new limiting option
  Last Modified - February 28, 2004 (V2.01)
        changed $email to single quotes to not require escaping the @ symbol

This script allows you to carry over unused bandwidth, (data transfer), from previous months for anyone who wants to provide this in their hosting packages. It takes the amount of data transfer that was unused from the previous month and adds it to the current month limit. It currently gives 2 options to limit the total bandwidth allowed for the current month. It can be a multiple of the actual maximum, or it can be a fixed maximum. It can also be set to have no limit, but that can be dangerous. A future version will have the ability to add only the unused transfer from the previous month, non-cumulative, and will also have the option to apply the script to all accounts.

Save these 2 files to your server, somewhere like /scripts/custom/
Rename the PWSrollbandwidth.txt to PWSrollbandwidth.pl
Read the instructions at the beginning of the script to set some variables and set up the cron job, and list users to be affected in the users txt file

script - rename .txt to .pl
users txt file - list your usernames in here

be sure to upload the file and script in ascii mode


Custom Scripts main page

Scripts Club
for a small donation you get access to the WHM scripts and improved versions of other scripts,
as well as other luxuries of being a "Scripts Club" member.

Go Back