xref: /freebsd/usr.sbin/lpr/lp/lp.1 (revision a0347c714809e03907a4973c00b661c126fa4304)
1e3fa32b4SJoerg Wunsch.\"
2e3fa32b4SJoerg Wunsch.\" Copyright (c) 1995 Joerg Wunsch
3e3fa32b4SJoerg Wunsch.\"
4e3fa32b4SJoerg Wunsch.\" All rights reserved.
5e3fa32b4SJoerg Wunsch.\"
6e3fa32b4SJoerg Wunsch.\" This program is free software.
7e3fa32b4SJoerg Wunsch.\"
8e3fa32b4SJoerg Wunsch.\" Redistribution and use in source and binary forms, with or without
9e3fa32b4SJoerg Wunsch.\" modification, are permitted provided that the following conditions
10e3fa32b4SJoerg Wunsch.\" are met:
11e3fa32b4SJoerg Wunsch.\" 1. Redistributions of source code must retain the above copyright
12e3fa32b4SJoerg Wunsch.\"    notice, this list of conditions and the following disclaimer.
13e3fa32b4SJoerg Wunsch.\" 2. Redistributions in binary form must reproduce the above copyright
14e3fa32b4SJoerg Wunsch.\"    notice, this list of conditions and the following disclaimer in the
15e3fa32b4SJoerg Wunsch.\"    documentation and/or other materials provided with the distribution.
16e3fa32b4SJoerg Wunsch.\" 3. All advertising materials mentioning features or use of this software
17e3fa32b4SJoerg Wunsch.\"    must display the following acknowledgement:
18e3fa32b4SJoerg Wunsch.\"	This product includes software developed by Joerg Wunsch
19e3fa32b4SJoerg Wunsch.\" 4. The name of the developer may not be used to endorse or promote
20e3fa32b4SJoerg Wunsch.\"    products derived from this software without specific prior written
21e3fa32b4SJoerg Wunsch.\"    permission.
22e3fa32b4SJoerg Wunsch.\"
23e3fa32b4SJoerg Wunsch.\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY EXPRESS OR
24e3fa32b4SJoerg Wunsch.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
25e3fa32b4SJoerg Wunsch.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
26e3fa32b4SJoerg Wunsch.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT,
27e3fa32b4SJoerg Wunsch.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
28e3fa32b4SJoerg Wunsch.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29e3fa32b4SJoerg Wunsch.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30e3fa32b4SJoerg Wunsch.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31e3fa32b4SJoerg Wunsch.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
32e3fa32b4SJoerg Wunsch.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33e3fa32b4SJoerg Wunsch.\"
3497d92980SPeter Wemm.\" $FreeBSD$
35e3fa32b4SJoerg Wunsch.\"
36e3fa32b4SJoerg Wunsch.Dd January 22, 1995
37e3fa32b4SJoerg Wunsch.Dt LP 1
38e3fa32b4SJoerg Wunsch.Os
39e3fa32b4SJoerg Wunsch.Sh NAME
40e3fa32b4SJoerg Wunsch.Nm lp
41e3fa32b4SJoerg Wunsch.Nd front-end to the print spooler
42e3fa32b4SJoerg Wunsch.Sh SYNOPSIS
43e97407b4SRuslan Ermilov.Nm
4484342240SSheldon Hearn.Op Fl cs
4542212752SSheldon Hearn.Op Fl o Ar option
469b3fe531SPhilippe Charnier.Op Fl d Ar printer
47e3fa32b4SJoerg Wunsch.Op Fl n Ar num
48e3fa32b4SJoerg Wunsch.Op Ar name ...
49e3fa32b4SJoerg Wunsch.Sh DESCRIPTION
507f94b8deSPhilippe CharnierThe
517f94b8deSPhilippe Charnier.Nm
527f94b8deSPhilippe Charnierutility is a front-end to the print spooler as required by the
53e3fa32b4SJoerg Wunsch.St -p1003.2
5407bfccd7SRuslan Ermilovspecification.
5507bfccd7SRuslan ErmilovIt effectively invokes
56e3fa32b4SJoerg Wunsch.Xr lpr 1
57e3fa32b4SJoerg Wunschwith the proper set of arguments.
58a3e71776SSheldon Hearn.Pp
59e3fa32b4SJoerg WunschIt generally prints the named files on the destination printer.
60e3fa32b4SJoerg Wunsch.Pp
619b3fe531SPhilippe CharnierThe following options are available:
629b3fe531SPhilippe Charnier.Bl -tag -width indent
639b3fe531SPhilippe Charnier.It Fl c
649b3fe531SPhilippe CharnierMake the
65e3fa32b4SJoerg Wunsch.Nm
66e3fa32b4SJoerg Wunschcommand exit only after further access to any of the input files is no
6707bfccd7SRuslan Ermilovlonger required.
6807bfccd7SRuslan ErmilovThe application can then safely delete or modify the
69e3fa32b4SJoerg Wunschfiles without affecting the output operation.
709b3fe531SPhilippe Charnier.It Fl d Ar dest
71f2e366a1SSheldon HearnSpecify a particular printer.
72f2e366a1SSheldon HearnIf no
73e3fa32b4SJoerg Wunsch.Fl d
7434384756SPhilippe Charnieris provided on the command line, the contents of the environment
75e3fa32b4SJoerg Wunschvariables
76e3fa32b4SJoerg Wunsch.Ev LPDEST
77e3fa32b4SJoerg Wunschor
78e3fa32b4SJoerg Wunsch.Ev PRINTER
79c4d9468eSRuslan Ermilov(with this precedence)
80e3fa32b4SJoerg Wunschare taken as the destination printer.
81a0347c71SBrian Somers.It Fl m
82a0347c71SBrian SomersSend mail upon completion.
839b3fe531SPhilippe Charnier.It Fl n Ar num
849b3fe531SPhilippe CharnierSpecify that
85e3fa32b4SJoerg Wunsch.Ar num
86e3fa32b4SJoerg Wunschcopies of each of the named files shall be printed.
8742212752SSheldon Hearn.It Fl o Ar option
8842212752SSheldon HearnPrinter specific options.
8942212752SSheldon HearnNot supported, provided only as a compatibility
9042212752SSheldon Hearnoption for SVR.
9184342240SSheldon Hearn.It Fl s
9284342240SSheldon HearnSilent operation.
9384342240SSheldon HearnNot supported,
9484342240SSheldon Hearnprovided only as a compatibility option for
9584342240SSheldon Hearn.St -susv2 .
96a0347c71SBrian Somers.It Fl t Ar title
97a0347c71SBrian SomersSet the job title to
98a0347c71SBrian Somers.Ar title .
999b3fe531SPhilippe Charnier.El
100e3fa32b4SJoerg Wunsch.Sh ENVIRONMENT
101e3fa32b4SJoerg WunschAs described above, the variables
102e3fa32b4SJoerg Wunsch.Ev LPDEST
103e3fa32b4SJoerg Wunschand
104e3fa32b4SJoerg Wunsch.Ev PRINTER
105e3fa32b4SJoerg Wunschare examined to select the destination printer.
106e3fa32b4SJoerg Wunsch.Sh SEE ALSO
107e3fa32b4SJoerg Wunsch.Xr lpr 1
108e3fa32b4SJoerg Wunsch.Sh STANDARDS
109e3fa32b4SJoerg WunschThe
1109b3fe531SPhilippe Charnier.Nm
111e3fa32b4SJoerg Wunschcommand is expected to comply with the
112e3fa32b4SJoerg Wunsch.St -p1003.2
113e3fa32b4SJoerg Wunschspecification.
114f12a1471SPhilippe Charnier.Sh AUTHORS
115e3fa32b4SJoerg WunschThis implementation of the
116e3fa32b4SJoerg Wunsch.Nm
117e3fa32b4SJoerg Wunschcommand has been written by
118726b61abSRuslan Ermilov.An J\(:org Wunsch .
119e3fa32b4SJoerg Wunsch.Sh BUGS
120e3fa32b4SJoerg WunschThe
121e3fa32b4SJoerg Wunsch.St -p1003.2
12207bfccd7SRuslan Ermilovspecification does not provide any means to print non-text files.
12307bfccd7SRuslan ErmilovIt
124e3fa32b4SJoerg Wunschrather requires the files to be printed to be text files limited to
125e3fa32b4SJoerg Wunschreasonable line lengths and printable characters.
126