Page 1 of 1

Qued printer jobs - Solved

Posted: 05 Dec 2022, 07:30
by Ed_P
I have 46 printer jobs listed dating back to June of 2021. How do I delete these?

Code: Select all

HP-Officejet-Pro-8600-46  	Unknown  	Withheld  	252k  	Unknown  	canceled at
											Mon 05 Dec 2022 02:22:41 AM EST  	
...


HP-Officejet-Pro-8600-2  	Unknown  	Withheld  	800k  	2  		completed at
											Wed 30 Jun 2021 10:52:06 AM EDT

Code: Select all

07-printing-x86_64-2022-08-06.xzm : Aug 6 07:54

Qued printer jobs

Posted: 05 Dec 2022, 12:58
by beny
Via cups web page or if you have a printer manager list the queue job

Qued printer jobs

Posted: 05 Dec 2022, 19:47
by Ed_P
menu > Admin > Manage Printing brings up the CUPS 2.4.2 webpage where Jobs > Show All Jobs and Show Completed Jobs lists all the entries but no option to delete them. And Right clicking on them doesn't do anything.

Qued printer jobs

Posted: 05 Dec 2022, 20:21
by beny
hi Ed_P try to search in /var/spool/cups if you have old print job or this maybe is better:
guest@porteus:~$ lprm --help
Usage: lprm [options] [id]
lprm [options] -
Options:
- Cancel all jobs
-E Encrypt the connection to the server
-h server[:port] Connect to the named server and port
-P destination Specify the destination
-U username Specify the username to use for authentication

Examples

To remove job number 13 from the default printer queue, enter:

lprm 13

To remove job number 13 from printer queue lp0, enter:
lprm -P lp0 13
To remove a job from the printer queue for a certain user, enter:

lprm guest

but i remeber time ago i can use cups web interface to do this job

Qued printer jobs

Posted: 05 Dec 2022, 22:02
by Ed_P
Thanks beny. Unfortunately:

Code: Select all

guest@porteus:~$ lprm --help
Usage: lprm [options] [id]
       lprm [options] -
Options:
-                       Cancel all jobs
-E                      Encrypt the connection to the server
-h server[:port]        Connect to the named server and port
-P destination          Specify the destination
-U username             Specify the username to use for authentication
guest@porteus:~$ lprm -
lprm: Forbidden
guest@porteus:~$ lprm 42
lprm: Job #42 is already completed - can't cancel.
guest@porteus:~$ lprm 2
lprm: Job #2 is already completed - can't cancel.
guest@porteus:~$ lprm guest
lprm: Error - unknown destination "guest".
guest@porteus:~$ lprm unknown
lprm: Error - unknown destination "unknown".
guest@porteus:~$ lprm Unknown
lprm: Error - unknown destination "Unknown".
guest@porteus:~$ lprm Withheld
lprm: Error - unknown destination "Withheld".
guest@porteus:~$ 

Code: Select all

	ID			Name		User		Size	Pages	State				Control
HP-Officejet-Pro-8600-2  	Unknown  	Withheld  	800k  	2  	completed at
										Wed 30 Jun 2021 10:52:06 AM EDT 
Added in 8 minutes 7 seconds:

Code: Select all

guest@porteus:~$ su
Password: 
root@porteus:/home/guest# lprm -
root@porteus:/home/guest# 
But Show Completed Jobs still lists them all. :(

Qued printer jobs

Posted: 06 Dec 2022, 17:22
by beny
hi Ed_P lpq and lpc take a look..if you have a dead queue,try if you can see it

Qued printer jobs

Posted: 06 Dec 2022, 18:14
by Ed_P
beny wrote:
06 Dec 2022, 17:22
hi Ed_P lpq and lpc take a look
Thank's beny. Unfortunately:

Code: Select all

guest@porteus:~$ lpg --help
bash: lpg: command not found
guest@porteus:~$ su
Password: 
root@porteus:/home/guest# lpq --help
Usage: lpq [options] [+interval]
Options:
-a                      Show jobs on all destinations
-E                      Encrypt the connection to the server
-h server[:port]        Connect to the named server and port
-l                      Show verbose (long) output
-P destination          Show status for the specified destination
-U username             Specify the username to use for authentication
root@porteus:/home/guest# lpq -a
no entries
root@porteus:/home/guest# lpc --help
--help is not implemented by the CUPS version of lpc.
root@porteus:/home/guest# lpc
lpc> 
lpc> ^C
root@porteus:/home/guest# 
Image

Added in 19 minutes 48 seconds:
This worked. :celebrate14:

Code: Select all

root@porteus:/home/guest# find /var/spool/cups/ -iname 'c*' -mtime +30 -delete
From a link Blaze suggested. https://www.linuxquestions.org/question ... 175572507/ :)

:beer:

Added in 32 minutes 15 seconds:
Saved me 20Mb in my 536Mb save.dat file. :good:
(Savefile Manager's Savefile size was 512Mb)

Qued printer jobs - Solved

Posted: 06 Dec 2022, 19:07
by Blaze
Awesome :magic: