File: Tutorial.05.nrf

package info (click to toggle)
lprng-doc 3.4.1-3
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 6,508 kB
  • ctags: 8
  • sloc: makefile: 139; perl: 62
file content (68 lines) | stat: -rw-r--r-- 1,382 bytes parent folder | download | duplicates (2)
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
.NH 1
LPRM
.PP
The
.L lprm
program is used to remove jobs from the spool queues.
For the following exercises,
we will temporarily stop printing,
and submit jobs.
.Rp
.Np
In one window,
start the LPD server using
.L "lpd -F"  .
.Np
Temporarily stop printing for all spool queues.
.DS
.L
.nf
lpc stop all
.DE
.Np
Submit a set of jobs to a printer.
.DS
.L
.nf
echo hi |lpr -Pt1
echo hi |lpr -Pt1
.DE
.Np
Display the queue status using
.L "lpq -a" .
.DS
.L
.nf
Printer: t1@taco 'Test Printer 1' (printing disabled)
  Queue: 5 printable jobs
  Warning: no server present
  Status: finished operations at Sun Mar  3 13:51:49 1996
 Rank  Owner           Class Job Files                           Size Time
1      papowell@taco       A 050 (stdin)                            3 13:53:39
2      papowell@taco       A 068 (stdin)                            3 13:55:41
3      papowell@taco       A 075 (stdin)                            3 13:55:46
.DE
.Np
Try removing one of the jobs using
.L "lprm "
.I "jobnumber" ;
for example
.L "lprm 050" .
.Np
Try using
.L "lprm"
.I username
to remove all jobs submitted by a particular user.
.Np
If you want to remove all jobs in a queue
and you have control permissions on the queue,
you can use
.L "lprm all" .
.Np
The
.L -a
(all)
option will try to remove the specified jobs from all printers.
Try
.L "lprm -a all"
to remove all jobs for all users.