Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

lprm(1) [osx man page]

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-2013 by Apple Inc. 28 August 2009 CUPS lprm(1)

Check Out this Related Man Page

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)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Permission Denied when cancel lp job

Sun E5000 running Solaris 8 I receive permission denied error when attempting to cancel a print job as root, user, or lp. I found a tech tip that said to remove the tcp lp listeners but that didn't help. I can clean the queue using the old sun lpc command but my users need to be able to cancel... (2 Replies)
Discussion started by: Ron Restieri
2 Replies

2. UNIX for Dummies Questions & Answers

How to cancel all printjobs at once?

Hi unix-friends, I've got an RS6000 with Unix 4.3 as OS. I'm writing a script that i want to use for cancelling all print jobs at once. Does anyone have any good idea's, hints, or tips? Hope to hear from you, Erik (3 Replies)
Discussion started by: Erik Rooijmans
3 Replies

3. UNIX for Dummies Questions & Answers

Problem deleting print job

I am running SCO OpenServer Release 5 and I had a problem with a print job and I cancelled it. The print job still shows under lpstat as cancelled but doesn't go away and now I everything I print to the printer stays in the queue, but doesn't print. I have tried to delete the print job in... (2 Replies)
Discussion started by: sgtdmc
2 Replies

4. OS X (Apple)

Get print job information

Hi all, I am on a mac and I am trying to get more information about print jobs i have. "lpq" only displays the document printing, size, and job ID. I need the status (if its on hold or not). Anyway to do that in unix/cups? (5 Replies)
Discussion started by: CBarraford
5 Replies

5. Shell Programming and Scripting

Faulty Autosys job runs properly

There has been an instance, where to my surprise, an autosys jil script in which the LOGPATH directory was wrongly specified worked all fine. It was actually a set of jobs with a box having two command jobs and a filewatcher. The filewatcher job had the wrong path used, i.e., other than what was... (3 Replies)
Discussion started by: pranavagarwal
3 Replies

6. UNIX for Dummies Questions & Answers

print: command not found

Hi I have print Apple >> /tmp/temp7.xls as part of my shell script. But when I execute I have the following error. Please help. RT.sh: line 801: print: command not found (5 Replies)
Discussion started by: pk_eee
5 Replies

7. UNIX for Dummies Questions & Answers

Catching print jobs.

Hi, I am wondering how to catch print jobs to process them before been served to the printer. I was told that the challenge is to catch raw text that an old legacy application sends to the printer (invoices, quotes, etc) and save them as text files to allow a new application to process them... (5 Replies)
Discussion started by: miguel77mex
5 Replies

8. Shell Programming and Scripting

truncate/round down 2nd string print both

I have a file with a name and then a number: Apple 1.1 Apple 1.5 Apple 1.9 Banana 1.3 Banana 2.7 Banana 3.3 I'd like to print out the first string followed by the second number rounded down or truncated: Apple 1 Apple 1 Apple 1 Banana 1 Banana 2 Banana 3 I was trying: (3 Replies)
Discussion started by: dcfargo
3 Replies

9. UNIX for Dummies Questions & Answers

can't cancel nohup job

Yesterday I started a nohup job called assoc.sh. It has not finished running, but I have realised a problem with my script, so wish to cancel it, modify and restart it. However, I cannot find the PID, so can't cancel it. I have searched the ps list and nothing resembles my job - how can I cancel... (13 Replies)
Discussion started by: polly_falconer
13 Replies

10. Solaris

what privilege to assign for user to cancel or disable print queue?

OS Version: Sun Solaris version 9 Other than root, we need operation to manage printer queue by using following command: lprm -P cancel enable/disable What privilege should be given? Pls advise. Thank you. (4 Replies)
Discussion started by: KhawHL
4 Replies

11. HP-UX

i want to cancel printing job

hi every body i used " lpstat -o" to show the printer jobs and i already canceld it by "cancel -e -f jobid" but the problem i found when used " lpstat -o" again it said that job in progress i think because it in the buffer but i don't know how to clear the printer. (9 Replies)
Discussion started by: maxim42
9 Replies

12. Shell Programming and Scripting

count identical strings print last row and count

I have a sorted file like: Apple 3 Apple 5 Apple 8 Banana 2 Banana 3 Grape 31 Orange 7 Orange 13 I'd like to search $1 and if $1 is not the same as $1 in the previous row print that row and print the number of times $1 was found. so the output would look like: Apple 8 3 Banana... (2 Replies)
Discussion started by: dcfargo
2 Replies

13. UNIX for Dummies Questions & Answers

Copying a file from one server to another (behind firewall.)

Hi, I want to copy a file from one server A to another server B. Usually I use scp username@source-server:/path . (from the destination folder) However, in this particular case, I have server C behind a firewall. So, I connect to Server B and ssh over to server C. --this is the source... (3 Replies)
Discussion started by: neil.k
3 Replies

14. Shell Programming and Scripting

error in .login file

I have one server (consider A) .While logining into server A using username as u1 .I am not getting any command not found error but while I am loging into that server A using username as u2 , I am getting this below error while login... (5 Replies)
Discussion started by: maitree
5 Replies

15. UNIX for Advanced & Expert Users

[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 (2 Replies)
Discussion started by: omonoiatis9
2 Replies