xref: /dflybsd-src/usr.sbin/lpr/lp/lp.1 (revision 86d7f5d305c6adaa56ff4582ece9859d73106103)
186d7f5d3SJohn Marino.\"
286d7f5d3SJohn Marino.\" Copyright (c) 1995 Joerg Wunsch
386d7f5d3SJohn Marino.\"
486d7f5d3SJohn Marino.\" All rights reserved.
586d7f5d3SJohn Marino.\"
686d7f5d3SJohn Marino.\" This program is free software.
786d7f5d3SJohn Marino.\"
886d7f5d3SJohn Marino.\" Redistribution and use in source and binary forms, with or without
986d7f5d3SJohn Marino.\" modification, are permitted provided that the following conditions
1086d7f5d3SJohn Marino.\" are met:
1186d7f5d3SJohn Marino.\" 1. Redistributions of source code must retain the above copyright
1286d7f5d3SJohn Marino.\"    notice, this list of conditions and the following disclaimer.
1386d7f5d3SJohn Marino.\" 2. Redistributions in binary form must reproduce the above copyright
1486d7f5d3SJohn Marino.\"    notice, this list of conditions and the following disclaimer in the
1586d7f5d3SJohn Marino.\"    documentation and/or other materials provided with the distribution.
1686d7f5d3SJohn Marino.\" 3. All advertising materials mentioning features or use of this software
1786d7f5d3SJohn Marino.\"    must display the following acknowledgement:
1886d7f5d3SJohn Marino.\"	This product includes software developed by Joerg Wunsch
1986d7f5d3SJohn Marino.\" 4. The name of the developer may not be used to endorse or promote
2086d7f5d3SJohn Marino.\"    products derived from this software without specific prior written
2186d7f5d3SJohn Marino.\"    permission.
2286d7f5d3SJohn Marino.\"
2386d7f5d3SJohn Marino.\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY EXPRESS OR
2486d7f5d3SJohn Marino.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
2586d7f5d3SJohn Marino.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
2686d7f5d3SJohn Marino.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT,
2786d7f5d3SJohn Marino.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
2886d7f5d3SJohn Marino.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2986d7f5d3SJohn Marino.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
3086d7f5d3SJohn Marino.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
3186d7f5d3SJohn Marino.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
3286d7f5d3SJohn Marino.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3386d7f5d3SJohn Marino.\"
3486d7f5d3SJohn Marino.\" $FreeBSD: src/usr.sbin/lpr/lp/lp.1,v 1.12.2.4 2002/06/21 16:40:43 charnier Exp $
3586d7f5d3SJohn Marino.\" $DragonFly: src/usr.sbin/lpr/lp/lp.1,v 1.2 2003/06/17 04:29:56 dillon Exp $
3686d7f5d3SJohn Marino.\"
3786d7f5d3SJohn Marino.Dd January 22, 1995
3886d7f5d3SJohn Marino.Dt LP 1
3986d7f5d3SJohn Marino.Os
4086d7f5d3SJohn Marino.Sh NAME
4186d7f5d3SJohn Marino.Nm lp
4286d7f5d3SJohn Marino.Nd front-end to the print spooler
4386d7f5d3SJohn Marino.Sh SYNOPSIS
4486d7f5d3SJohn Marino.Nm
4586d7f5d3SJohn Marino.Op Fl cs
4686d7f5d3SJohn Marino.Op Fl o Ar option
4786d7f5d3SJohn Marino.Op Fl d Ar printer
4886d7f5d3SJohn Marino.Op Fl n Ar num
4986d7f5d3SJohn Marino.Op Ar name ...
5086d7f5d3SJohn Marino.Sh DESCRIPTION
5186d7f5d3SJohn MarinoThe
5286d7f5d3SJohn Marino.Nm
5386d7f5d3SJohn Marinoutility is a front-end to the print spooler as required by the
5486d7f5d3SJohn Marino.St -p1003.2
5586d7f5d3SJohn Marinospecification.  It effectively invokes
5686d7f5d3SJohn Marino.Xr lpr 1
5786d7f5d3SJohn Marinowith the proper set of arguments.
5886d7f5d3SJohn Marino.Pp
5986d7f5d3SJohn MarinoIt generally prints the named files on the destination printer.
6086d7f5d3SJohn Marino.Pp
6186d7f5d3SJohn MarinoThe following options are available:
6286d7f5d3SJohn Marino.Bl -tag -width indent
6386d7f5d3SJohn Marino.It Fl c
6486d7f5d3SJohn MarinoMake the
6586d7f5d3SJohn Marino.Nm
6686d7f5d3SJohn Marinocommand exit only after further access to any of the input files is no
6786d7f5d3SJohn Marinolonger required.  The application can then safely delete or modify the
6886d7f5d3SJohn Marinofiles without affecting the output operation.
6986d7f5d3SJohn Marino.It Fl d Ar dest
7086d7f5d3SJohn MarinoSpecify a particular printer.
7186d7f5d3SJohn MarinoIf no
7286d7f5d3SJohn Marino.Fl d
7386d7f5d3SJohn Marinois provided on the command line, the contents of the environment
7486d7f5d3SJohn Marinovariables
7586d7f5d3SJohn Marino.Ev LPDEST
7686d7f5d3SJohn Marinoor
7786d7f5d3SJohn Marino.Ev PRINTER
7886d7f5d3SJohn Marino(with this precedence)
7986d7f5d3SJohn Marinoare taken as the destination printer.
8086d7f5d3SJohn Marino.It Fl n Ar num
8186d7f5d3SJohn MarinoSpecify that
8286d7f5d3SJohn Marino.Ar num
8386d7f5d3SJohn Marinocopies of each of the named files shall be printed.
8486d7f5d3SJohn Marino.It Fl o Ar option
8586d7f5d3SJohn MarinoPrinter specific options.
8686d7f5d3SJohn MarinoNot supported, provided only as a compatibility
8786d7f5d3SJohn Marinooption for SVR.
8886d7f5d3SJohn Marino.It Fl s
8986d7f5d3SJohn MarinoSilent operation.
9086d7f5d3SJohn MarinoNot supported,
9186d7f5d3SJohn Marinoprovided only as a compatibility option for
9286d7f5d3SJohn Marino.St -susv2 .
9386d7f5d3SJohn Marino.El
9486d7f5d3SJohn Marino.Sh ENVIRONMENT
9586d7f5d3SJohn MarinoAs described above, the variables
9686d7f5d3SJohn Marino.Ev LPDEST
9786d7f5d3SJohn Marinoand
9886d7f5d3SJohn Marino.Ev PRINTER
9986d7f5d3SJohn Marinoare examined to select the destination printer.
10086d7f5d3SJohn Marino.Sh SEE ALSO
10186d7f5d3SJohn Marino.Xr lpr 1
10286d7f5d3SJohn Marino.Sh STANDARDS
10386d7f5d3SJohn MarinoThe
10486d7f5d3SJohn Marino.Nm
10586d7f5d3SJohn Marinocommand is expected to comply with the
10686d7f5d3SJohn Marino.St -p1003.2
10786d7f5d3SJohn Marinospecification.
10886d7f5d3SJohn Marino.Sh AUTHORS
10986d7f5d3SJohn MarinoThis implementation of the
11086d7f5d3SJohn Marino.Nm
11186d7f5d3SJohn Marinocommand has been written by
11286d7f5d3SJohn Marino.An J\(:org Wunsch .
11386d7f5d3SJohn Marino.Sh BUGS
11486d7f5d3SJohn MarinoThe
11586d7f5d3SJohn Marino.St -p1003.2
11686d7f5d3SJohn Marinospecification does not provide any means to print non-text files.  It
11786d7f5d3SJohn Marinorather requires the files to be printed to be text files limited to
11886d7f5d3SJohn Marinoreasonable line lengths and printable characters.
119