Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have printed a couple of files and lpstat shows that they are completed. But the output is something like this:

# lpstat -W completed -l

Canon-1                 root           1086464   Sat May 21 22:47:03 2011
Alerts: job-canceled-by-user
queued for Canon
Canon-2                 root            337920   Mon May 23 20:18:02 2011
Alerts: job-canceled-by-user
queued for Canon
CanonWin-3              root             17408   Mon May 23 20:29:40 2011
Alerts: job-completed-successfully
queued for CanonWin`

How can i get names of files which has been printed? P.S. Is there is any bash-script which allows me to get names of all files which has been printed?

share|improve this question
up vote 0 down vote accepted

use "lpq JOB_ID", where JOB_ID is the number 1,2,3 (in your example). or see http://localhost:631/jobs/ and the Name field

share|improve this answer
    
but with this name you can`t get an absolute path of a printed file - those files are the temp-files in /var/spool/cups (d00001, etc) – kanner Nov 30 '11 at 9:20
    
Man, i even do not remember why i'v faced this problem. But thanks anyway. – Grook Dec 2 '11 at 15:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .