1LPR(1)                      General Commands Manual                     LPR(1)
2
3
4

NAME

6       lpr - off line print
7

SYNOPSIS

9       lpr [ -Pprinter ] [ -#num ] [ -C class ] [ -J job ] [ -T title ] [ -i [
10       numcols ]] [ -1234 font ] [ -wnum ] [ -pltndgvcfrmhs ] [ name ...  ]
11

DESCRIPTION

13       Lpr uses a spooling daemon to print the  named  files  when  facilities
14       become  available.   If no names appear, the standard input is assumed.
15       The -P option may be used to force output to a specific printer.   Nor‐
16       mally,  the  default  printer is used (site dependent), or the value of
17       the environment variable PRINTER is used.
18
19       The following single letter options are used to notify the line printer
20       spooler that the files are not standard text files. The spooling daemon
21       will use the appropriate filters to print the data accordingly.
22
23       -p   Use pr(1) to format the files (equivalent to print).
24
25       -l   Use a filter which allows control characters  to  be  printed  and
26            suppresses page breaks.
27
28       -t   The  files  are  assumed to contain data from troff(1) (cat photo‐
29            typesetter commands).
30
31       -n   The files are assumed to contain data from ditroff  (device  inde‐
32            pendent troff).
33
34       -d   The files are assumed to contain data from tex(l) (DVI format from
35            Stanford).
36
37       -g   The files are assumed to contain standard plot data as produced by
38            the  plot(3X)  routines (see also plot(1G) for the filters used by
39            the printer spooler).
40
41       -v   The files are assumed to contain a raster image for  devices  like
42            the Benson Varian.
43
44       -c   The files are assumed to contain data produced by cifplot(l).
45
46       -f   Use  a filter which interprets the first character of each line as
47            a standard FORTRAN carriage control character.
48
49       The remaining single letter options have the following meaning.
50
51       -r   Remove the file upon completion of spooling or upon completion  of
52            printing (with the -s option).
53
54       -m   Send mail upon completion.
55
56       -h   Suppress the printing of the burst page.
57
58       -s   Use  symbolic links.  Usually files are copied to the spool direc‐
59            tory.
60
61       The -C option takes the following argument as a job classification  for
62       use on the burst page.  For example,
63
64            lpr -C EECS foo.c
65
66       causes  the  system  name  (the  name  returned  by  hostname(1)) to be
67       replaced on the burst page by EECS, and the file foo.c to be printed.
68
69       The -J option takes the following argument as the job name to print  on
70       the burst page.  Normally, the first file's name is used.
71
72       The -T option uses the next argument as the title used by pr(1) instead
73       of the file name.
74
75       To get multiple copies of output, use the -#num option,  where  num  is
76       the number of copies desired of each file named.  For example,
77
78            lpr -#3 foo.c bar.c more.c
79
80       would result in 3 copies of the file foo.c, followed by 3 copies of the
81       file bar.c, etc.  On the other hand,
82
83            cat foo.c bar.c more.c | lpr -#3
84
85       will give three copies of the concatenation of the files.
86
87       The -i option causes the output to be indented. If the next argument is
88       numeric,  it  is used as the number of blanks to be printed before each
89       line; otherwise, 8 characters are printed.
90
91       The -w option takes the immediately following number  to  be  the  page
92       width for pr.
93
94       The -s option will use symlink(2) to link data files rather than trying
95       to copy them so large files can  be  printed.   This  means  the  files
96       should not be modified or removed until they have been printed.
97
98       The  option  -1234  Specifies  a font to be mounted on font position i.
99       The   daemon   will   construct    a    .railmag    file    referencing
100       /usr/share/vfont/name.size.
101

FILES

103       /etc/passwd            personal identification
104       /etc/printcap          printer capabilities data base
105       /usr/sbin/lpd          line printer daemon
106       /usr/spool/*           directories used for spooling
107       /usr/spool/*/cf*       daemon control files
108       /usr/spool/*/df*       data files specified in "cf" files
109       /usr/spool/*/tf*       temporary copies of "cf" files
110

SEE ALSO

112       lpq(1), lprm(1), pr(1), symlink(2), printcap(5), lpc(8), lpd(8)
113

DIAGNOSTICS

115       If  you  try to spool too large a file, it will be truncated.  Lpr will
116       object to printing binary files.  If a user other than  root  prints  a
117       file  and  spooling is disabled, lpr will print a message saying so and
118       will not put jobs in the queue.  If a connection to lpd  on  the  local
119       machine cannot be made, lpr will say that the daemon cannot be started.
120       Diagnostics may be printed in the daemon's log file  regarding  missing
121       spool files by lpd.
122

BUGS

124       Fonts for troff and tex reside on the host with the printer. It is cur‐
125       rently not possible to use local font libraries.
126
127
128
1294th Berkeley Distribution      October 22, 1996                         LPR(1)
Impressum