BSD 4_3_Tahoe development
[unix-history] / usr / man / cat1 / lpr.0
LPR(1) UNIX Programmer's Manual LPR(1)
N\bNA\bAM\bME\bE
lpr - off line print
S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
l\blp\bpr\br [ -\b-P\bP_\bp_\br_\bi_\bn_\bt_\be_\br ] [ -\b-#\b#_\bn_\bu_\bm ] [ -\b-C\bC _\bc_\bl_\ba_\bs_\bs ] [ -\b-J\bJ _\bj_\bo_\bb ] [ -\b-T\bT
_\bt_\bi_\bt_\bl_\be ] [ -\b-i\bi [ _\bn_\bu_\bm_\bc_\bo_\bl_\bs ]] [ -\b-1\b12\b23\b34\b4 _\bf_\bo_\bn_\bt ] [ -\b-w\bw_\bn_\bu_\bm ] [
-\b-p\bpl\blt\btn\bnd\bdg\bgv\bvc\bcf\bfr\brm\bmh\bhs\bs ] [ name ... ]
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
L\bLp\bpr\br uses a spooling daemon to print the named files when
facilities become available. If no names appear, the stan-
dard input is assumed. The -\b-P\bP option may be used to force
output to a specific printer. Normally, the default printer
is used (site dependent), or the value of the environment
variable PRINTER is used.
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.
-\b-p\bp Use _\bp_\br(1) to format the files (equivalent to _\bp_\br_\bi_\bn_\bt).
-\b-l\bl Use a filter which allows control characters to be
printed and suppresses page breaks.
-\b-t\bt The files are assumed to contain data from _\bt_\br_\bo_\bf_\bf(1)
(cat phototypesetter commands).
-\b-n\bn The files are assumed to contain data from _\bd_\bi_\bt_\br_\bo_\bf_\bf
(device independent troff).
-\b-d\bd The files are assumed to contain data from _\bt_\be_\bx(l) (DVI
format from Stanford).
-\b-g\bg The files are assumed to contain standard plot data as
produced by the _\bp_\bl_\bo_\bt(3X) routines (see also _\bp_\bl_\bo_\bt(1G)
for the filters used by the printer spooler).
-\b-v\bv The files are assumed to contain a raster image for
devices like the Benson Varian.
-\b-c\bc The files are assumed to contain data produced by
_\bc_\bi_\bf_\bp_\bl_\bo_\bt(l).
-\b-f\bf Use a filter which interprets the first character of
each line as a standard FORTRAN carriage control char-
acter.
The remaining single letter options have the following mean-
ing.
Printed 7/9/88 April 29, 1985 1
LPR(1) UNIX Programmer's Manual LPR(1)
-\b-r\br Remove the file upon completion of spooling or upon
completion of printing (with the -\b-s\bs option).
-\b-m\bm Send mail upon completion.
-\b-h\bh Suppress the printing of the burst page.
-\b-s\bs Use symbolic links. Usually files are copied to the
spool directory.
The -\b-C\bC option takes the following argument as a job classif-
ication for use on the burst page. For example,
lpr -C EECS foo.c
causes the system name (the name returned by _\bh_\bo_\bs_\bt_\bn_\ba_\bm_\be(1)) to
be replaced on the burst page by EECS, and the file foo.c to
be printed.
The -\b-J\bJ option takes the following argument as the job name
to print on the burst page. Normally, the first file's name
is used.
The -\b-T\bT option uses the next argument as the title used by
_\bp_\br(1) instead of the file name.
To get multiple copies of output, use the -\b-#\b#_\bn_\bu_\bm option,
where _\bn_\bu_\bm is the number of copies desired of each file
named. For example,
lpr -#3 foo.c bar.c more.c
would result in 3 copies of the file foo.c, followed by 3
copies of the file bar.c, etc. On the other hand,
cat foo.c bar.c more.c | lpr -#3
will give three copies of the concatenation of the files.
The -\b-i\bi option causes the output to be indented. If the next
argument is numeric, it is used as the number of blanks to
be printed before each line; otherwise, 8 characters are
printed.
The -\b-w\bw option takes the immediately following number to be
the page width for _\bp_\br.
The -\b-s\bs option will use _\bs_\by_\bm_\bl_\bi_\bn_\bk(2) 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.
Printed 7/9/88 April 29, 1985 2
LPR(1) UNIX Programmer's Manual LPR(1)
The option -\b-1\b12\b23\b34\b4 Specifies a font to be mounted on font
position _\bi. The daemon will construct a ._\br_\ba_\bi_\bl_\bm_\ba_\bg file
referencing /_\bu_\bs_\br/_\bl_\bi_\bb/_\bv_\bf_\bo_\bn_\bt/_\bn_\ba_\bm_\be._\bs_\bi_\bz_\be.
F\bFI\bIL\bLE\bES\bS
/etc/passwd personal identification
/etc/printcap printer capabilities data base
/usr/lib/lpd* line printer daemons
/usr/spool/* directories used for spooling
/usr/spool/*/cf* daemon control files
/usr/spool/*/df* data files specified in "cf" files
/usr/spool/*/tf* temporary copies of "cf" files
S\bSE\bEE\bE A\bAL\bLS\bSO\bO
lpq(1), lprm(1), pr(1), symlink(2), printcap(5), lpc(8),
lpd(8)
D\bDI\bIA\bAG\bGN\bNO\bOS\bST\bTI\bIC\bCS\bS
If you try to spool too large a file, it will be truncated.
_\bL_\bp_\br will object to printing binary files. If a user other
than root prints a file and spooling is disabled, _\bl_\bp_\br will
print a message saying so and will not put jobs in the
queue. If a connection to _\bl_\bp_\bd on the local machine cannot
be made, _\bl_\bp_\br will say that the daemon cannot be started.
Diagnostics may be printed in the daemon's log file regard-
ing missing spool files by _\bl_\bp_\bd.
B\bBU\bUG\bGS\bS
Fonts for _\bt_\br_\bo_\bf_\bf and _\bt_\be_\bx reside on the host with the printer.
It is currently not possible to use local font libraries.
Printed 7/9/88 April 29, 1985 3