~ubuntu-branches/ubuntu/hardy/lpr/hardy

« back to all changes in this revision

Viewing changes to SMM.doc/6.t

  • Committer: Bazaar Package Importer
  • Author(s): Martin Schulze
  • Date: 2003-03-15 14:54:38 UTC
  • Revision ID: james.westby@ubuntu.com-20030315145438-3n1sxzrmv1g34n4t
Tags: upstream-2000.05.07
ImportĀ upstreamĀ versionĀ 2000.05.07

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
.\" $OpenBSD: 6.t,v 1.2 1997/01/17 15:54:18 millert Exp $
 
2
.\"
 
3
.\" Copyright (c) 1983, 1993
 
4
.\"     The Regents of the University of California.  All rights reserved.
 
5
.\"
 
6
.\" Redistribution and use in source and binary forms, with or without
 
7
.\" modification, are permitted provided that the following conditions
 
8
.\" are met:
 
9
.\" 1. Redistributions of source code must retain the above copyright
 
10
.\"    notice, this list of conditions and the following disclaimer.
 
11
.\" 2. Redistributions in binary form must reproduce the above copyright
 
12
.\"    notice, this list of conditions and the following disclaimer in the
 
13
.\"    documentation and/or other materials provided with the distribution.
 
14
.\" 3. All advertising materials mentioning features or use of this software
 
15
.\"    must display the following acknowledgement:
 
16
.\"     This product includes software developed by the University of
 
17
.\"     California, Berkeley and its contributors.
 
18
.\" 4. Neither the name of the University nor the names of its contributors
 
19
.\"    may be used to endorse or promote products derived from this software
 
20
.\"    without specific prior written permission.
 
21
.\"
 
22
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 
23
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 
24
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 
25
.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 
26
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 
27
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 
28
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 
29
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 
30
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 
31
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 
32
.\" SUCH DAMAGE.
 
33
.\"
 
34
.\"     @(#)6.t 8.1 (Berkeley) 6/8/93
 
35
.\"
 
36
.NH 1
 
37
Line printer Administration
 
38
.PP
 
39
The
 
40
.I lpc
 
41
program provides local control over line printer activity.
 
42
The major commands and their intended use will be described.
 
43
The command format and remaining commands are described in
 
44
.IR lpc (8).
 
45
.LP
 
46
\fBabort\fP and \fBstart\fP
 
47
.IP
 
48
.I Abort
 
49
terminates an active spooling daemon on the local host immediately and
 
50
then disables printing (preventing new daemons from being started by
 
51
.IR lpr ).
 
52
This is normally used to forcibly restart a hung line printer daemon
 
53
(i.e., \fIlpq\fP reports that there is a daemon present but nothing is
 
54
happening).  It does not remove any jobs from the queue
 
55
(use the \fIlprm\fP command instead).
 
56
.I Start
 
57
enables printing and requests \fIlpd\fP to start printing jobs.
 
58
.LP
 
59
\fBenable\fP and \fBdisable\fP
 
60
.IP
 
61
\fIEnable\fP and \fIdisable\fP allow spooling in the local queue to be
 
62
turned on/off.
 
63
This will allow/prevent
 
64
.I lpr
 
65
from putting new jobs in the spool queue.  It is frequently convenient
 
66
to turn spooling off while testing new line printer filters since the
 
67
.I root
 
68
user can still use
 
69
.I lpr
 
70
to put jobs in the queue but no one else can.
 
71
The other main use is to prevent users from putting jobs in the queue
 
72
when the printer is expected to be unavailable for a long time.
 
73
.LP
 
74
\fBrestart\fP
 
75
.IP
 
76
.I Restart
 
77
allows ordinary users to restart printer daemons when
 
78
.I lpq
 
79
reports that there is no daemon present.
 
80
.LP
 
81
\fBstop\fP
 
82
.IP
 
83
.I Stop
 
84
halts a spooling daemon after the current job completes;
 
85
this also disables printing.  This is a clean way to shutdown a
 
86
printer to do maintenance, etc.  Note that users can still enter jobs in a
 
87
spool queue while a printer is
 
88
.IR stopped .
 
89
.LP
 
90
\fBtopq\fP
 
91
.IP
 
92
.I Topq
 
93
places jobs at the top of a printer queue.  This can be used
 
94
to reorder high priority jobs since
 
95
.I lpr
 
96
only provides first-come-first-serve ordering of jobs.