Sponsored Content
Top Forums UNIX for Advanced & Expert Users [Solved] remove all print jobs from a print queue Post 302540962 by omonoiatis9 on Friday 22nd of July 2011 04:51:09 AM
Old 07-22-2011
[Solved] remove all print jobs from a print queue

Hello,

Sometimes i need to clear all the jobs of a print queue and it is really annoying to cancel one by one.
Is there a way to cancel all print jobs for a specific print queue with a single command instead of cancelling them one by one?
My AIX system is 5.3

Thank you for your attention
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

jobs stalled in remote print queue

I have a printer in another state that is setup as follows: lj8100 printer connected to their printserver (a w2k box); users connect to a unix app on our Sun server via Exceed (we are two states away via WAN); users submit print jobs through an established print queue through the unix app to... (0 Replies)
Discussion started by: antalexi
0 Replies

2. SCO

Print jobs getting stuck on the queue

I have implemented Laser printers using USB printer servers connected to a SCO server. Sometimes print jobs get stuck on the queue and I havent found a way of getting the printer back to work without canceling the jobs and rebooting the system. Why jobs get stuck? How do I get this solved... (9 Replies)
Discussion started by: iNetForce
9 Replies

3. Solaris

Print to ps2pdf print queue

I am trying to create a printer queue, on a SunOS 5.7 system, that outputs a pdf file. There is an application running on the system that has a print button, which sends print files to the default printer. If I disable the printer, I am able to manually capture the files in /var/spool/lp/tmp and... (2 Replies)
Discussion started by: Sean_69
2 Replies

4. HP-UX

Print Queue jobs stuck

Hello, I have a print queue that the jobs are getting stuck in. I've disabled and enabled the queue, lpshut and lpsched the print spooler, and killed a suspected corrupt job. But new requests still get stuck. I can ping the printer by DNS with no problem. What else can I look for? I'm a little... (3 Replies)
Discussion started by: mizzleman
3 Replies

5. Shell Programming and Scripting

print queue jobs

Hi, I have one queue that have status QUEUE and 10 jobs are waiting.Can any one guide me how i can get total number of jobs on this queue.i can see 10 jobs but i need to get count 10 for this queue.Please help me out thanks in advance sagii (2 Replies)
Discussion started by: sagii
2 Replies

6. Shell Programming and Scripting

print queue jobs

Hi, i m having problem to get number of jobs waiting using lpstat.my printer is out of paper and 10jobs are in queue but i run lpstat -pqname it didnt show any thing.any one have idea whats wrong here. thanks sagii (2 Replies)
Discussion started by: sagii
2 Replies

7. HP-UX

[Solved] Problem creating print queue HP-UX -to- HP4100N

Hi all, I am new to HP-UX, using SAM I cannot make a print queue on my test server. From my test & live server as the user required and as root I can ping my printer. I have tried to clone the test print queue using the exact same options use on my live system that prints just fine. Can anyone... (9 Replies)
Discussion started by: KmJohnson
9 Replies

8. UNIX for Dummies Questions & Answers

[Solved] Cancelling print jobs for an entire month

Hi pals, Pls tel me how to cancel print jobs for an entire month (ex : sept)? lpstat -oLBNDUIP061 | grep -i Sep is listing me hundreds of jobs. Thanks in Advance, Satish Video tutorial on how to use code tags in The UNIX and Linux Forums. (22 Replies)
Discussion started by: satish51392111
22 Replies

9. AIX

Print jobs stuck in queue

Hi, have an aix system with something I've never seen happening. All printers are not printing. I see jobs Queued and printer status as READY but jobs just keep getting queued and nothing's printing. Seems to be a system wide problem since it's affecting all printers. Help... (2 Replies)
Discussion started by: flash88
2 Replies

10. HP-UX

[Solved] a way to tell printer used by configured print queue?

Hello; As the title says, am trying to find our which driver is used for the alraedy working print queues.. neither hpnpf nor hppi seems to give that info .. Any ideas ?? Thnx (2 Replies)
Discussion started by: delphys
2 Replies
lprm(1) 							    Apple Inc.								   lprm(1)

NAME
lprm - cancel print jobs SYNOPSIS
lprm [ -E ] [ -U username ] [ -h server[:port] ] [ -P destination[/instance] ] [ - ] [ job ID(s) ] DESCRIPTION
lprm cancels print jobs that have been queued for printing. If no arguments are supplied, the current job on the default destination is cancelled. You can specify one or more job ID numbers to cancel those jobs or use the - option to cancel all jobs. OPTIONS
The lprm command supports the following options: -E Forces encryption when connecting to the server. -P destination[/instance] Specifies the destination printer or class. -U username Specifies an alternate username. -h server[:port] Specifies an alternate server. COMPATIBILITY
The CUPS version of lprm is compatible with the standard Berkeley lprm command. SEE ALSO
cancel(1), lp(1), lpq(1), lpr(1), lpstat(1), http://localhost:631/help COPYRIGHT
Copyright 2007-2011 by Apple Inc. 28 August 2009 CUPS lprm(1)
All times are GMT -4. The time now is 09:37 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy