xref: /386bsd/usr/share/man/cat1/lpr.0 (revision a2142627)
1LPR(1)                      386BSD Reference Manual                     LPR(1)
2
3NNAAMMEE
4     llpprr - off line print
5
6SSYYNNOOPPSSIISS
7     llpprr [--PP_p_r_i_n_t_e_r] [--##_n_u_m] [--CC _c_l_a_s_s] [--JJ _j_o_b] [--TT _t_i_t_l_e] [--UU _u_s_e_r] [--ii
8         [_n_u_m_c_o_l_s]] [--11223344 _f_o_n_t] [--ww_n_u_m] [--ccddffgghhllnnmmpprrssttvv] [_n_a_m_e ...]
9
10DDEESSCCRRIIPPTTIIOONN
11     LLpprr uses a spooling daemon to print the named files when facilities
12     become available.  If no names appear, the standard input is assumed.
13
14     The following single letter options are used to notify the line printer
15     spooler that the files are not standard text files. The spooling daemon
16     will use the appropriate filters to print the data accordingly.
17
18     --cc      The files are assumed to contain data produced by cifplot(1)
19
20     --dd      The files are assumed to contain data from _t_e_x (DVI format from
21             Stanford).
22
23     --ff      Use a filter which interprets the first character of each line as
24             a standard FORTRAN carriage control character.
25
26     --gg      The files are assumed to contain standard plot data as produced
27             by the plot routines (see also plot for the filters used by the
28             printer spooler).
29
30     --ll      Use a filter which allows control characters to be printed and
31             suppresses page breaks.
32
33     --nn      The files are assumed to contain data from _d_i_t_r_o_f_f (device
34             independent troff).
35
36     --pp      Use pr(1) to format the files (equivalent to print).
37
38     --tt      The files are assumed to contain data from troff(1) (cat
39             phototypesetter commands).
40
41     --vv      The files are assumed to contain a raster image for devices like
42             the Benson Varian.
43
44     These options apply to the handling of the print job:
45
46     --PP      Force output to a specific printer.  Normally, the default
47             printer is used (site dependent), or the value of the environment
48             variable PRINTER is used.
49
50     --hh      Suppress the printing of the burst page.
51
52     --mm      Send mail upon completion.
53
54     --rr      Remove the file upon completion of spooling or upon completion of
55             printing (with the --ss option).
56
57     --ss      Use symbolic links.  Usually files are copied to the spool
58             directory.  The --ss option will use symlink(2) to link data files
59             rather than trying to copy them so large files can be printed.
60             This means the files should not be modified or removed until they
61             have been printed.
62
63     The remaining options apply to copies, the page display, and headers:
64
65     --##_n_u_m   The quantity _n_u_m is the number of copies desired of each file
66             named.  For example,
67
68                   lpr -#3 foo.c bar.c more.c
69             would result in 3 copies of the file foo.c, followed by 3 copies
70             of the file bar.c, etc.  On the other hand,
71
72                   cat foo.c bar.c more.c | lpr -#3
73
74             will give three copies of the concatenation of the files. Often a
75             site will disable this feature to encourage use of a photocopier
76             instead.
77
78     --[11223344]_f_o_n_t
79             Specifies a _f_o_n_t to be mounted on font position _i. The daemon
80             will construct a .railmag file referencing the font pathname.
81
82     --CC _c_l_a_s_s
83             Job classification to use on the burst page.  For example,
84
85                   lpr -C EECS foo.c
86
87             causes the system name (the name returned by hostname(1))  to be
88             replaced on the burst page by EECS, and the file foo.c to be
89             printed.
90
91     --JJ _j_o_b  Job name to print on the burst page.  Normally, the first file's
92             name is used.
93
94     --TT _t_i_t_l_e
95             Title name for pr(1),  instead of the file name.
96
97     --UU _u_s_e_r
98             User name to print on the burst page, also for accounting
99             purposes.  This option is only honored if the real user-id is
100             daemon (or that specified in the printcap file instead of
101             daemon), and is intended for those instances where print filters
102             wish to requeue jobs.
103
104     --ii [numcols]
105             The output is indented. If the next argument is numeric
106             (_n_u_m_c_o_l_s), it is used as the number of blanks to be printed
107             before each line; otherwise, 8 characters are printed.
108
109     --ww_n_u_m   Uses _n_u_m as the page width for pr(1).
110
111EENNVVIIRROONNMMEENNTT
112     If the following environment variable exists, it is used by llpprr:
113
114     PRINTER  Specifies an alternate default printer.
115
116FFIILLEESS
117     /etc/passwd              Personal identification.
118     /etc/printcap            Printer capabilities data base.
119     /usr/sbin/lpd*           Line printer daemons.
120     /var/spool/output/*      Directories used for spooling.
121     /var/spool/output/*/cf*  Daemon control files.
122     /var/spool/output/*/df*  Data files specified in "cf" files.
123     /var/spool/output/*/tf*  Temporary copies of "cf" files.
124
125SSEEEE AALLSSOO
126     lpq(1),  lprm(1),  pr(1),  symlink(2),  printcap(5),  lpc(8),  lpd(8)
127
128HHIISSTTOORRYY
129     The llpprr command appeared in 3BSD.
130
131DDIIAAGGNNOOSSTTIICCSS
132     If you try to spool too large a file, it will be truncated.  LLpprr will
133     object to printing binary files.  If a user other than root prints a file
134     and spooling is disabled, llpprr will print a message saying so and will not
135     put jobs in the queue.  If a connection to lpd(1) on the local machine
136     cannot be made, llpprr will say that the daemon cannot be started.
137     Diagnostics may be printed in the daemon's log file regarding missing
138     spool files by lpd(1).
139
140BBUUGGSS
141     Fonts for troff(1) and tex reside on the host with the printer. It is
142     currently not possible to use local font libraries.
143
1444th Berkeley Distribution        July 24, 1991                               3
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199