I am printing some files from a remote computer to a network printer with the lpr command. It apparently worked, but some minutes later when I typed lpstat or lpq, the job had already disappeared, it had probably already printed the file. Is there a way to check the history or the log of my successfully completed jobs in the printer queue?
Yes a program exists:
Or if you prefer via the following web pages:
An alternative is the web interface
which also shows completed jobs. I'm not sure where the web interface gets its information from.
The other answer when tried produced the following:
Adding a user,
Curiously I could do this:
So one hackish way to do this would be to formalize a list of the users on your system and then add that as a subcommand to the
Just to show that this sees all the users locally you can get a unique list of your users like so:
One problem with this is if the user printing to CUPS does not have an account locally then they won't get displayed.
But if you have a directory that contains your LPD control files, typically it's /var/spool/cups
Another source of usernames?
If you look through these files you'll notice that they contain usernames, and not just ones for accounts that are present on the system.
So we could select all the entries that contain the username followed by the B.
This list can then be adapted in the same way as we were originally using to take the list of users from