[cups.general] tea4cups logging question

Jerome Alet alet at librelogiciel.com
Thu Nov 24 22:24:33 PST 2005


On Thu, Nov 24, 2005 at 09:58:20PM -0800, Ted Dively wrote:
> 
> On an Apple Xserve G4 running Mac OS X Server v.10.4.3, I've set up a  
> CUPS backend called "tea4cups", which I want to use to provide more  
> information about print jobs than the OS logs to /var/log/cups/ 
> page_log. It's critical that tea4cups provide the job number and job  
> title in its log so that it can be combined with /var/log/cups/ 
> page_log to allow for more complete accounting. The config file is / 
> etc/cups/tea4cups.conf, and I've got it working fine, except that I  
> guess I'm not understanding how to properly use the echo command.  
> Here's the relevant line from /etc/cups/tea4cups.conf:
> 
> prehook_accounting : echo $TEAPRINTERNAME $TEAUSER $TEAJOBID  
> $TEATITLE $TEACOPIES $TEABILLING $TEACLIENTHOST > var/log/ 
> printaccounting.log

use >>/var/log/printacounting.log instead of >/var/log/printaccounting.log
and your file will contain all lines instead of only the last one.

bye

Jerome Alet





More information about the cups mailing list