19.2. papwaitprinter.sh

This script which accepts a printer's AppleTalk name as its first parameter is used to wait for a printer which supports the AppleTalk protocol to be in idle state. It exits as soon as the printer is idle, else loops forever.

When defining an hardware accounter for a printer, it is important to wait for the printer being idle before asking it for its internal page counter, otherwise results could be inaccurate. If the printer is asked while the job is still being printed, then the page counter's value will be lower than expected with regard to the real job's size.

papwaitprinter.sh can be used to be sure that PyKota waits until no job is being printed, and no paper sheet is travelling inside the printer.

TipTip
 

See the sample configuration file conf/pykota.conf.sample for examples.