OSX - 捕捉到打印作业。 [英] OSX - Catch to print jobs.
问题描述
我一直在做我的研究,但我找不到(印有或者有多少页)捕多少打印作业用户发送到打印机的一种方式。
I've been doing my research but I can't find a way of catching how many print jobs a user has sent to the printer (or how many pages have printed).
我想要做的是一个OSX用户打印的页的简单的计数器。你有没有见过这样的事情?
What I want to do is a simple counter of pages printed by a OSX user. Have you seen anything like it?
1:可以通过软件在电脑里,而不是打印机来算多少的打印作业。
2:计数多少页?
1.- Be able to count how many print jobs via software in the computer, not the printer. 2.- Counting how many pages?
推荐答案
OS X使用纸杯印刷。你可以列出完成,但是用户USER_NAME工作:
OS X uses cups for printing. You can list completed jobs for user user_name with:
lpstat -W completed -u user_name
您可以尝试以获得在/ var /日志/杯/页面日志打印的页数,但这个文件的内容取决于打印机驱动程序。从杯文档:
You may try to get the number of pages printed from /var/log/cups/page_log, but the content of this file depends on the printer driver. From cups documentation:
页记录
CUPS记录每一个打印系统的页面日志文件的页面。
页面日志仅适用于提供网页司机
会计信息,通常所有的PostScript和CUPS光栅
设备。原始队列和队列使用第三方解决方案,如
的Foomatic一般没有有用的网页会计信息
可用。
CUPS logs every page that is printed on a system to the page_log file. Page logging is only available for drivers that provide page accounting information, typically all PostScript and CUPS raster devices. Raw queues and queues using third-party solutions such as Foomatic generally do not have useful page accounting information available.
这篇关于OSX - 捕捉到打印作业。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!