BSD 4_3_Net_2 release
[unix-history] / usr / src / usr.sbin / lpr / lpr / lpr.1
index 78b5a57..f948380 100644 (file)
@@ -1,13 +1,37 @@
 .\" Copyright (c) 1980, 1990 The Regents of the University of California.
 .\" All rights reserved.
 .\"
 .\" Copyright (c) 1980, 1990 The Regents of the University of California.
 .\" All rights reserved.
 .\"
-.\" %sccs.include.redist.man%
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in the
+.\"    documentation and/or other materials provided with the distribution.
+.\" 3. All advertising materials mentioning features or use of this software
+.\"    must display the following acknowledgement:
+.\"    This product includes software developed by the University of
+.\"    California, Berkeley and its contributors.
+.\" 4. Neither the name of the University nor the names of its contributors
+.\"    may be used to endorse or promote products derived from this software
+.\"    without specific prior written permission.
 .\"
 .\"
-.\"     @(#)lpr.1      6.8 (Berkeley) %G%
+.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+.\" SUCH DAMAGE.
 .\"
 .\"
-.Vx
-.Vx
-.Dd 
+.\"     @(#)lpr.1      6.10 (Berkeley) 7/24/91
+.\"
+.Dd July 24, 1991
 .Dt LPR 1
 .Os BSD 4
 .Sh NAME
 .Dt LPR 1
 .Os BSD 4
 .Sh NAME
 .Nd off line print
 .Sh SYNOPSIS
 .Nm lpr
 .Nd off line print
 .Sh SYNOPSIS
 .Nm lpr
-.Oo
-.Op Fl P Ar printer
-.Op Fl \&# Ar num
-.Oo
+.Op Fl P Ns Ar printer
+.Op Fl \&# Ns Ar num
 .Op Fl C Ar class
 .Op Fl J Ar job
 .Op Fl T Ar title
 .Op Fl U Ar user
 .Op Fl i Op Ar numcols
 .Op Fl 1234 Ar font
 .Op Fl C Ar class
 .Op Fl J Ar job
 .Op Fl T Ar title
 .Op Fl U Ar user
 .Op Fl i Op Ar numcols
 .Op Fl 1234 Ar font
-.Oo
-.Op Fl w Ar num
-.Oo
+.Op Fl w Ns Ar num
 .Op Fl cdfghlnmprstv
 .Op Ar name ...
 .Op Fl cdfghlnmprstv
 .Op Ar name ...
-.Oo
 .Sh DESCRIPTION
 .Nm Lpr
 uses a spooling daemon to print the named files when facilities
 .Sh DESCRIPTION
 .Nm Lpr
 uses a spooling daemon to print the named files when facilities
@@ -39,63 +58,66 @@ become available.  If no names appear, the standard input is assumed.
 The following single letter options are used to notify the line printer
 spooler that the files are not standard text files. The spooling daemon will
 use the appropriate filters to print the data accordingly.
 The following single letter options are used to notify the line printer
 spooler that the files are not standard text files. The spooling daemon will
 use the appropriate filters to print the data accordingly.
-.Tw Fl
-.Tp Fl c
+.Bl -tag -width indent
+.It Fl c
 The files are assumed to contain data produced by
 .Xr cifplot 1
 The files are assumed to contain data produced by
 .Xr cifplot 1
-.Tp Fl d
+.It Fl d
 The files are assumed to contain data from
 .Em tex
 The files are assumed to contain data from
 .Em tex
-(DVI format from Stanford).
-.Tp Fl f
+.Pf ( Tn DVI
+format from Stanford).
+.It Fl f
 Use a filter which interprets the first character of each line as a
 Use a filter which interprets the first character of each line as a
-standard FORTRAN carriage control character.
-.Tp Fl g
+standard
+.Tn FORTRAN
+carriage control character.
+.It Fl g
 The files are assumed to contain standard plot data as produced by the
 .Xr plot
 routines (see also
 .Xr plot
 for the filters used by the printer spooler).
 The files are assumed to contain standard plot data as produced by the
 .Xr plot
 routines (see also
 .Xr plot
 for the filters used by the printer spooler).
-.Tp Fl l
+.It Fl l
 Use a filter which allows control characters to be printed and suppresses
 page breaks.
 Use a filter which allows control characters to be printed and suppresses
 page breaks.
-.Tp Fl n
+.It Fl n
 The files are assumed to contain data from
 .Em ditroff
 (device independent troff).
 The files are assumed to contain data from
 .Em ditroff
 (device independent troff).
-.Tp Fl p
+.It Fl p
 Use
 .Xr pr  1
 to format the files (equivalent to
 Use
 .Xr pr  1
 to format the files (equivalent to
-.Em print  ) .
-.Tp Fl t
+.Xr print  ) .
+.It Fl t
 The files are assumed to contain data from
 .Xr troff  1
 (cat phototypesetter commands).
 The files are assumed to contain data from
 .Xr troff  1
 (cat phototypesetter commands).
-.Tp Fl v
+.It Fl v
 The files are assumed to contain a raster image for devices like the
 Benson Varian.
 The files are assumed to contain a raster image for devices like the
 Benson Varian.
-.Tp
+.El
 .Pp
 These options apply to the handling of
 the print job:
 .Pp
 These options apply to the handling of
 the print job:
-.Tw Fl
-.Tp Fl P
+.Bl -tag -width indent
+.It Fl P
 Force output to a specific printer.  Normally,
 the default printer is used (site dependent), or the value of the
 environment variable
 .Ev PRINTER
 is used.
 Force output to a specific printer.  Normally,
 the default printer is used (site dependent), or the value of the
 environment variable
 .Ev PRINTER
 is used.
-.Tp Fl h
+.It Fl h
 Suppress the printing of the burst page.
 Suppress the printing of the burst page.
-.Tp Fl m
+.It Fl m
 Send mail upon completion.
 Send mail upon completion.
-.Tp Fl r
+.It Fl r
 Remove the file upon completion of spooling or upon completion of
 printing (with the
 .Fl s
 option).
 Remove the file upon completion of spooling or upon completion of
 printing (with the
 .Fl s
 option).
-.Tp Fl s
+.It Fl s
 Use symbolic links.  Usually files are copied to the spool directory.
 The
 .Fl s
 Use symbolic links.  Usually files are copied to the spool directory.
 The
 .Fl s
@@ -104,32 +126,29 @@ option will use
 to link data files rather than trying to copy them so large files can be
 printed.  This means the files should
 not be modified or removed until they have been printed.
 to link data files rather than trying to copy them so large files can be
 printed.  This means the files should
 not be modified or removed until they have been printed.
-.Tp
+.El
 .Pp
 The remaining options apply to copies, the page display, and headers:
 .Pp
 The remaining options apply to copies, the page display, and headers:
-.Tw Fl
-.Tc Fl \&#
-.Ar num
-.Cx
+.Bl -tag -width indent
+.It Fl \&# Ns Ar num
 The quantity
 .Ar num
 is the number of copies desired of each file named.  For example,
 The quantity
 .Ar num
 is the number of copies desired of each file named.  For example,
-.Pp
-.Dl lpr \-#3 foo.c bar.c more.c
-.Pp
+.Bd -literal -offset indent
+lpr \-#3 foo.c bar.c more.c
+.Ed
 would result in 3 copies of the file foo.c, followed by 3 copies
 of the file bar.c, etc.  On the other hand,
 would result in 3 copies of the file foo.c, followed by 3 copies
 of the file bar.c, etc.  On the other hand,
-.Pp
-.Dl cat foo.c bar.c more.c \&| lpr \-#3
+.Bd -literal -offset indent
+cat foo.c bar.c more.c \&| lpr \-#3
+.Ed
 .Pp
 will give three copies of the concatenation of the files. Often
 a site will disable this feature to encourage use of a photocopier
 instead.
 .Pp
 will give three copies of the concatenation of the files. Often
 a site will disable this feature to encourage use of a photocopier
 instead.
-.Tc Fl
-.Op Cm 1234
-.Ws
-.Ar font
-.Cx
+.It Xo
+.Fl Ns Oo Cm 1234 Oc Ar font
+.Xc
 Specifies a
 .Ar font
 to be mounted on font position
 Specifies a
 .Ar font
 to be mounted on font position
@@ -139,83 +158,67 @@ will construct a
 .Li .railmag
 file referencing
 the font pathname.
 .Li .railmag
 file referencing
 the font pathname.
-.Tc Fl C
-.Ws
-.Ar class
-.Cx
+.It Fl C Ar class
 Job classification
 to use on the burst page.  For example,
 Job classification
 to use on the burst page.  For example,
-.Pp
-.Dl lpr \-C EECS foo.c
+.Bd -literal -offset indent
+lpr \-C EECS foo.c
+.Ed
 .Pp
 causes the system name (the name returned by
 .Xr hostname  1  )
 .Pp
 causes the system name (the name returned by
 .Xr hostname  1  )
-to be replaced on the burst page by EECS,
+to be replaced on the burst page by
+.Tn EECS ,
 and the file foo.c to be printed.
 and the file foo.c to be printed.
-.Tc Fl J
-.Ws
-.Ar job
-.Cx
+.It Fl J Ar job
 Job name to print on the burst page.
 Normally, the first file's name is used.
 Job name to print on the burst page.
 Normally, the first file's name is used.
-.Tc Fl T
-.Ws
-.Ar title
-.Cx
+.It Fl T Ar title
 Title name for
 .Xr pr  1 ,
 instead of the file name.
 Title name for
 .Xr pr  1 ,
 instead of the file name.
-.Tc Fl U
-.Ws
-.Ar user
-.Cx
+.It Fl U Ar user
 User name to print on the burst page,
 also for accounting purposes.
 This option is only honored if the real user-id is daemon
 (or that specified in the printcap file instead of daemon),
 and is intended for those instances where print filters wish to requeue jobs.
 User name to print on the burst page,
 also for accounting purposes.
 This option is only honored if the real user-id is daemon
 (or that specified in the printcap file instead of daemon),
 and is intended for those instances where print filters wish to requeue jobs.
-.Tc Fl i
-.Ws
-.Op numcols
-.Cx
+.It Fl i Op numcols
 The output is indented. If the next argument
 is numeric
 The output is indented. If the next argument
 is numeric
-.Pf \&( Ar numcols ) ,
+.Pq Ar numcols ,
 it is used as the number of blanks to be printed before each
 line; otherwise, 8 characters are printed.
 it is used as the number of blanks to be printed before each
 line; otherwise, 8 characters are printed.
-.Tc Fl w
-.Ar num
-.Cx
+.It Fl w Ns Ar num
 Uses
 .Ar num
 as the page width for
 .Xr pr 1 .
 Uses
 .Ar num
 as the page width for
 .Xr pr 1 .
-.Tp
+.El
 .Sh ENVIRONMENT
 If the following environment variable exists, it is used by
 .Nm lpr :
 .Sh ENVIRONMENT
 If the following environment variable exists, it is used by
 .Nm lpr :
-.Tw Fl
-.Tp Ev PRINTER
+.Bl -tag -width PRINTER
+.It Ev PRINTER
 Specifies an alternate default printer.
 Specifies an alternate default printer.
-.Tp
+.El
 .Sh FILES
 .Sh FILES
-.Dw /var/spool/output/*/tf*
-.Di L
-.Dp Pa /etc/passwd
-personal identification
-.Dp Pa /etc/printcap
-printer capabilities data base
-.Dp Pa /usr/sbin/lpd*
-line printer daemons
-.Dp Pa /var/spool/output/*
-directories used for spooling
-.Dp Pa /var/spool/output/*/cf*
-daemon control files
-.Dp Pa /var/spool/output/*/df*
-data files specified in "cf" files
-.Dp Pa /var/spool/output/*/tf*
-temporary copies of "cf" files
-.Dp
+.Bl -tag -width /var/spool/output/*/tf* -compact
+.It Pa /etc/passwd
+Personal identification.
+.It Pa /etc/printcap
+Printer capabilities data base.
+.It Pa /usr/sbin/lpd*
+Line printer daemons.
+.It Pa /var/spool/output/*
+Directories used for spooling.
+.It Pa /var/spool/output/*/cf*
+Daemon control files.
+.It Pa /var/spool/output/*/df*
+Data files specified in "cf" files.
+.It Pa /var/spool/output/*/tf*
+Temporary copies of "cf" files.
+.El
 .Sh SEE ALSO
 .Xr lpq 1 ,
 .Xr lprm 1 ,
 .Sh SEE ALSO
 .Xr lpq 1 ,
 .Xr lprm 1 ,
@@ -225,8 +228,10 @@ temporary copies of "cf" files
 .Xr lpc 8 ,
 .Xr lpd 8
 .Sh HISTORY
 .Xr lpc 8 ,
 .Xr lpd 8
 .Sh HISTORY
-.Nm Lpr
-appeared in 3 BSD.
+The
+.Nm lpr
+command appeared in
+.Bx 3 .
 .Sh DIAGNOSTICS
 If you try to spool too large a file, it will be truncated.
 .Nm Lpr
 .Sh DIAGNOSTICS
 If you try to spool too large a file, it will be truncated.
 .Nm Lpr