/usr/share/doc/lprng-doc/LPRng-Reference-Multipart/jobremoval.htm is in lprng-doc 3.8.A~rc2-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 6 November 2007), see www.w3.org">
<title>Job Removal</title>
<meta name="GENERATOR" content=
"Modular DocBook HTML Stylesheet Version 1.79">
<link rel="HOME" title=" LPRng Reference Manual" href=
"index.htm">
<link rel="UP" title="Print Spooling Tutorial " href=
"tutorial.htm">
<link rel="PREVIOUS" title="Controlling the Print Queue" href=
"controllingprintqueue.htm">
<link rel="NEXT" title="Print Job Filters" href=
"printjobfilters.htm">
</head>
<body class="SECT1" bgcolor="#FFFFFF" text="#000000" link="#0000FF"
vlink="#840084" alink="#0000FF">
<div class="NAVHEADER">
<table summary="Header navigation table" width="100%" border=
"0" cellpadding="0" cellspacing="0">
<tr>
<th colspan="3" align="center">LPRng Reference Manual: 24
Sep 2004 (For LPRng-3.8.28)</th>
</tr>
<tr>
<td width="10%" align="left" valign="bottom"><a href=
"controllingprintqueue.htm" accesskey="P">Prev</a></td>
<td width="80%" align="center" valign="bottom">Chapter 4.
Print Spooling Tutorial</td>
<td width="10%" align="right" valign="bottom"><a href=
"printjobfilters.htm" accesskey="N">Next</a></td>
</tr>
</table>
<hr align="left" width="100%">
</div>
<div class="SECT1">
<h1 class="SECT1"><a name="JOBREMOVAL" id="JOBREMOVAL">4.8. Job
Removal</a></h1>
<p>Occasionally we print a file and then change our mind and
want to cancel the job. The <b class="APPLICATION">lprm</b>
command allows us to do this.</p>
<div class="INFORMALEXAMPLE">
<a name="AEN2139" id="AEN2139"></a>
<pre class="SCREEN">
<samp class="PROMPT">h4: {154} % </samp><kbd class=
"USERINPUT">lpq</kbd>
Printer: lp@h4 (printing disabled)
Queue: 3 printable jobs
Server: no server active
Status: job 'papowell@h4+17922' removed at 18:15:13.981
Rank Owner/ID Class Job Files Size Time
1 papowell@h4+17959 A 17959 (stdin) 3 18:23:24
2 papowell@h4+17962 A 17962 (stdin) 6 18:23:30
3 papowell@h4+17970 A 17970 (stdin) 5 18:23:35
<samp class="PROMPT">h4: {155} % </samp><kbd class=
"USERINPUT">lprm</kbd>
Printer lp@h4:
checking perms 'papowell@h4+17959'
dequeued 'papowell@h4+17959'
<samp class="PROMPT">h4: {156} % </samp><kbd class=
"USERINPUT">lpq</kbd>
Printer: lp@h4 (printing disabled)
Queue: 2 printable jobs
Server: no server active
Status: job 'papowell@h4+17922' removed at 18:15:13.981
Rank Owner/ID Class Job Files Size Time
1 papowell@h4+17962 A 17962 (stdin) 6 18:23:30
2 papowell@h4+17970 A 17970 (stdin) 5 18:23:35
<samp class="PROMPT">h4: {157} % </samp><kbd class=
"USERINPUT">lprm 17970</kbd>
Printer lp@h4:
checking perms 'papowell@h4+17970'
dequeued 'papowell@h4+17970'
<samp class="PROMPT">h4: {158} % </samp><kbd class=
"USERINPUT">lpq</kbd>
Printer: lp@h4 (printing disabled)
Queue: 1 printable job
Server: no server active
Status: job 'papowell@h4+17922' removed at 18:15:13.981
Rank Owner/ID Class Job Files Size Time
1 papowell@h4+17962 A 17962 (stdin) 6 18:23:30
</pre>
</div>
<p>By default, the <b class="APPLICATION">lprm</b> command
removes the first job in the queue that the user has permission
to remove. Also, as shown in the example, you can remove a job
by specifying the job ID or the job number. If you specify a
user name, you remove <tt class="LITERAL">all</tt> of the
user's jobs. This can be dangerous:</p>
<div class="INFORMALEXAMPLE">
<a name="AEN2154" id="AEN2154"></a>
<pre class="SCREEN">
<samp class="PROMPT">h4: {159} % </samp><kbd class=
"USERINPUT">lpq</kbd>
Printer: lp@h4 (printing disabled)
Queue: 3 printable jobs
Server: no server active
Status: job 'papowell@h4+17922' removed at 18:15:13.981
Rank Owner/ID Class Job Files Size Time
1 papowell@h4+17962 A 17962 (stdin) 6 18:23:30
2 papowell@h4+18499 A 18499 /tmp/hi 3 18:56:00
3 papowell@h4+18501 A 18501 /tmp/there 6 18:56:02
<samp class="PROMPT">h4: {160} % </samp><kbd class=
"USERINPUT">lprm papowell</kbd>
Printer lp@h4:
checking perms 'papowell@h4+17962'
dequeued 'papowell@h4+17962'
checking perms 'papowell@h4+18499'
dequeued 'papowell@h4+18499'
checking perms 'papowell@h4+18501'
dequeued 'papowell@h4+18501'
<samp class="PROMPT">h4: {161} % </samp><kbd class=
"USERINPUT">lpq</kbd>
Printer: lp@h4 (printing disabled)
Queue: no printable jobs in queue
Status: job 'papowell@h4+17922' removed at 18:15:13.981
</pre>
</div>
<p>The special user <tt class="LITERAL">all</tt> matches all
jobs in a print queue. Clearly you should be careful not to
specify <tt class="COMMAND">lprm all</tt> by accident. Even
more dangerous is the following command:</p>
<div class="INFORMALEXAMPLE">
<a name="AEN2165" id="AEN2165"></a>
<pre class="SCREEN">
<samp class="PROMPT">h4: {162} % </samp><kbd class=
"USERINPUT">lprm -a all</kbd>
</pre>
</div>
<p>As you might surmise, this removes <tt class=
"LITERAL">all</tt> print jobs in <tt class="LITERAL">all</tt>
queues, which is an excellent way to purge print queues of all
jobs.</p>
</div>
<div class="NAVFOOTER">
<hr align="left" width="100%">
<table summary="Footer navigation table" width="100%" border=
"0" cellpadding="0" cellspacing="0">
<tr>
<td width="33%" align="left" valign="top"><a href=
"controllingprintqueue.htm" accesskey="P">Prev</a></td>
<td width="34%" align="center" valign="top"><a href=
"index.htm" accesskey="H">Home</a></td>
<td width="33%" align="right" valign="top"><a href=
"printjobfilters.htm" accesskey="N">Next</a></td>
</tr>
<tr>
<td width="33%" align="left" valign="top">Controlling the
Print Queue</td>
<td width="34%" align="center" valign="top"><a href=
"tutorial.htm" accesskey="U">Up</a></td>
<td width="33%" align="right" valign="top">Print Job
Filters</td>
</tr>
</table>
</div>
<p align="center"></p>
</body>
</html>
|