PyKota Documentation: A full featured Print Quota Solution for CUPS | ||
---|---|---|
Prev | Chapter 20. Useful Shell Scripts | Next |
This Perl script can be used in the accounter directive of pykota.conf, to ask a printer for its internal page counter by sending a specially crafted PJL job to it over the AppSocket protocol, usually on TCP port 9100. It accepts the printer's hostname or IP address as its first parameter, and the optional TCP port as its second parameter (it defaults to 9100).
Most of the time you'll use this script in combination with a script which waits for the printer to be in idle state, in something like :
accounter: hardware(somewaitscript.sh && pagecount.pl %(printer)s)
![]() | Tip |
---|---|
See the sample configuration file conf/pykota.conf.sample for examples. |