PDA

View Full Version : How to retrieve print jobs and corresponding pages



kalohr
September 10th, 2010, 07:34 AM
Hello all,

I need to write a script (for lucid, preferably) that
- retrieves the jobs send to a printer
- returns the number of pages each job will print

I have to do that on the client side that is, where the jobs are created

lpinfo, lpstat, lpq are some of the commands that return the state of printers, jobs, etc

however, they do not return the number of pages each job is to print...

does anybody know how I can get the number of pages from a printer job?

tx,

kalohr

kalohr
September 10th, 2010, 08:28 AM
more specifically, I need to retrieve the "job-media-sheets-completed" print job attribute