techAdmin
Status: Site Admin
Joined: 26 Sep 2003
Posts: 2522
Location: East Coast, West Coast? I know it's one of them.
Back to top
Posted: Jan 27, 10, 21:08    dws - new script - show distrowatch rankings
Very simple script, shows you distrowatch ranking for any distro or distros, and shows their daily page hit averages for the selected time period, and for day/month time frames, also if they are dropping, rising, or level relative to the previous day's average.

:: Code ::
cd /usr/local/bin && wget -O dws smxi.org/dws && chmod +x dws


Typical script for me, check -h for options.

-U updates it from smxi.org.

-d tells it what distro to test for, see -h for details. You can check multiple distros by creating a comma separated list.
-t 7|30|3|6|12|200[2-9] selects what time span to check with.

default, no args, is debian 7 day stats.

You can change the default by editing the top 3 lines.

:: Code ::
dws -d arch -t 2008
The arch distrowatch.com 2008 year position is: 17 (465)

dws -d fedora
The fedora distrowatch.com 7 day position is: 2 (1622+)

dws -d openbsd,opensolaris,pcbsd -t 30
The openbsd distrowatch.com 30 day position is: 64 (146~)
The opensolaris distrowatch.com 30 day position is: 39 (265-)
The pcbsd distrowatch.com 30 day position is: 15 (592+)


has error handling, and should tell you pretty much what went wrong when something fails.

Newly developed feature: if you chown the script to your user name, it allows for user level updates, that took a while to figure out how to do.

and that's about it, another odd little script made for little reason other than I think i was just bored today.
techAdmin
Status: Site Admin
Joined: 26 Sep 2003
Posts: 2522
Location: East Coast, West Coast? I know it's one of them.
Back to top
Posted: Jan 4, 12, 21:50    Version 1.3.3 bug fix edition
Version 1.3.3
Bug fix to resolve two failures, one grep behavior changing slightly, and the other the distrowatch page code changing slightly, easy modification, just update with -U if you don't have the current version and your distro watch watching will proceed as normal.
Display posts from previous:   

All times are GMT - 8 Hours