[sysadmin] cupsquota.sh
| ( ! ) Warning: fread() [function.fread]: Length parameter must be greater than 0 in /home/bbbart/www/htdocs/blog/wp-content/plugins/vimcolor/wp-vimcolor.php on line 105 | ||||
|---|---|---|---|---|
| Call Stack | ||||
| # | Time | Memory | Function | Location |
| 1 | 0.0001 | 53076 | {main}( ) | ../index.php:0 |
| 2 | 0.0002 | 56516 | require( '/home/bbbart/www/htdocs/blog/wp-blog-header.php' ) | ../index.php:17 |
| 3 | 0.3254 | 16856828 | require_once( '/home/bbbart/www/htdocs/blog/wp-includes/template-loader.php' ) | ../wp-blog-header.php:16 |
| 4 | 0.3512 | 16919408 | include( '/home/bbbart/www/htdocs/blog/wp-content/themes/svelt/single.php' ) | ../template-loader.php:43 |
| 5 | 0.4279 | 17037632 | the_content( ) | ../single.php:16 |
| 6 | 0.4279 | 17040760 | apply_filters( ) | ../post-template.php:169 |
| 7 | 0.4325 | 17050824 | call_user_func_array ( ) | ../plugin.php:166 |
| 8 | 0.4325 | 17051008 | vim_color( ) | ../plugin.php:0 |
| 9 | 0.4325 | 17051344 | preg_replace ( ) | ../wp-vimcolor.php:143 |
| 10 | 0.4327 | 17070836 | preg_replace ( ) | ../wp-vimcolor.php:143 |
| 11 | 0.4327 | 17073660 | vimcolor_process_color( ) | ../wp-vimcolor.php(143) : regexp code:76 |
| 12 | 0.4988 | 17092400 | fread ( ) | ../wp-vimcolor.php:105 |
Sometimes I want to know how many pages some user printed on some printer on
the network from some host on the network. This script tells me just that.
It’s an awk
program with a bourne shell wrapper to calculate the total amount of pages a
user has printed on a host using cups.