Saturday, April 29, 2006

Westnet Usage Grabber

As you may know, I recently made the move to Linux. As an ADSL customer with WestNet, I needed a simple way to view my current download usage, and lo and behold wug is announced. Also, just in case you're wondering why I didn't use the Mozilla NetUsage Extension, the reason is simple; I don't always have my browser open, and I don't always want to know what my usage is when I do have it open.

Quick Demo:

everybody@sonic:~$ wug help
Westnet Usage Grabber version 0.01
(C) 2006 Quinton Reeves GNU GPL

/home/everybody/bin/wug [options]
  apad          Pad values on the right instead of left
  last          Use the last cached grab
  tree          Tree style output
everybody@sonic:~$ wug
WestNet Usage Statistics @ Sat Apr 29 17:59:31 EST 2006 (1d6h0m28s remain)
  On Peak  [ Limit    20000M ] [ Used 19780.82M ] [ Left  219.18M ] [ Free  3026.63M ]
  Off Peak [ Limit    20000M ] [ Used  8744.82M ] [ Left 11255.18M ] [ Free  812.16M ]
everybody@sonic:~$ wug tree
WUG
|- Date          Sat Apr 29 17:59:34 EST 2006
|- Rollover      1d6h0m25s
|- On Peak
|  |- Limit      20000M
|  |- Used        19780.82M
|  |- Left        219.18M
|  `- Free        3026.63M
`- Off Peak
  |- Limit      20000M
  |- Used        8744.82M
  |- Left        11255.18M
  `- Free        812.16M


Also of interest is my profile.d userbin.sh, which adds ~/bin to my $PATH. Pretty basic stuff, which is why I'm wondering why it isn't included as a default, but oh well. I create heaps of useful (and useless) scripts which follow me around to each Linux install, putting them in my home directory makes sure they're backed up when I do.

No comments: