home *** CD-ROM | disk | FTP | other *** search
- #!/usr/bin/perl -P
- open (RATES, "/usr/convex/rates @ARGV |");
- (@rates = <RATES>) || die "Share not installed?\n";
- print shift @rates;
- $total = pop @rates;
- #define CPU(X) substr(X,20,5)
- print sort bycpu grep(CPU($_) != 0,@rates);
- sub bycpu { (CPU($a) < CPU($b)) ? 1 : -1; }
- print $total;
- exit !close RATES;
-