2 .\" Freely distributable under the terms of the GPL
3 .TH LPR 1 "22 Mar 2003 " "" ""
5 lpr \- Spool files to a printer
7 .BR "lpr " [ "\-D" "] [" "\-d"
9 .RB "] [" "\-h" "] [" "\-l" "] [" "\-P"
13 \fBlpr\fP spools a file to the specified printer device. No formatting
14 is done -- data is sent "raw". This is useful, for example, for sending
15 Postscript data to a Postscript printer.
19 enables some debugging output.
22 specifies the \fIdevice\fP to which to send the output.
25 does nothing and is accepted for compatibility only.
28 disables CR/LF translation. Normally, files are converted to DOS/Windows-style
29 line endings (CR+LF) during the spooling process. Some drivers appear to
30 require this translation, while most don't seem to care. Including this option
31 on the lpr command line disables any such translations.
34 an alias for \fB-d\fP.
36 A device name may be a UNC path (\\\\server_name\\printer_name), a
37 reserved DOS device name (e.g., prn, lpt1), or a local port name that
38 is mapped to a printer share. Note that forward slashes may be used in
39 a UNC path also (e.g., //server_name/printer_name).
41 A default device name may be specified in the \fBPRINTER\fP
42 environment variable. Specifying a device via a \fB-d\fP or \fB-P\fP
43 will override the environment variable setting.
45 Make sure that the default paper size setting is correct for the
46 program that is formatting the page. For example, for enscript, make
47 sure the \fBDefaultMedia\fP setting is correct in
48 \fB/etc/enscript.cfg\fP. If this setting is incorrect, it is possible
49 that no output at all will be produced by the printer. This is
50 \fBnot\fP an lpr issue.
52 Written by Rick Rankin.