]> cygwin.com Git - cygwin-apps/cygutils.git/blame - src/lpr/lpr.1
Add -l option to lpr
[cygwin-apps/cygutils.git] / src / lpr / lpr.1
CommitLineData
21006e63
CW
1.\" -*-Nroff-*-
2.\" Freely distributable under the terms of the GPL
3.TH LPR 1 "22 Mar 2003 " "" ""
4.SH NAME
5lpr \- Spool files to a printer
6.SH SYNOPSIS
a18d2869 7.BR "lpr " [ "\-D" "] [" "\-d"
21006e63 8.I device
a18d2869 9.RB "] [" "\-h" "] [" "\-l" "] [" "\-P"
21006e63 10.I device
a18d2869 11.RB ]
21006e63
CW
12.SH DESCRIPTION
13\fBlpr\fP spools a file to the specified printer device. No formatting
14is done -- data is sent "raw". This is useful, for example, for sending
15Postscript data to a Postscript printer.
16.SH OPTIONS
17.TP
21006e63
CW
18\fB-D\fP
19enables some debugging output.
20.TP
21\fB-d\fP \fIdevice\fP
22specifies the \fIdevice\fP to which to send the output.
23.TP
a18d2869
CW
24\fB-h\fP
25does nothing and is accepted for compatibility only.
26.TP
27\fB-l\fP
28disables CR/LF translation. Normally, files are converted to DOS/Windows-style
29line endings (CR+LF) during the spooling process. Some drivers appear to
30require this translation, while most don't seem to care. Including this option
31on the lpr command line disables any such translations.
32.TP
21006e63
CW
33\fB-P\fP \fIdevice\fP
34an alias for \fB-d\fP.
35.SH DEVICES
36A device name may be a UNC path (\\\\server_name\\printer_name), a
37reserved DOS device name (e.g., prn, lpt1), or a local port name that
38is mapped to a printer share. Note that forward slashes may be used in
39a UNC path also (e.g., //server_name/printer_name).
40.SH ENVIRONMENT
41A default device name may be specified in the \fBPRINTER\fP
42environment variable. Specifying a device via a \fB-d\fP or \fB-P\fP
43will override the environment variable setting.
44.SH NOTES
45Make sure that the default paper size setting is correct for the
46program that is formatting the page. For example, for enscript, make
47sure the \fBDefaultMedia\fP setting is correct in
48\fB/etc/enscript.cfg\fP. If this setting is incorrect, it is possible
49that no output at all will be produced by the printer. This is
50\fBnot\fP an lpr issue.
51.SH AUTHORS
52Written by Rick Rankin.
53
This page took 0.027291 seconds and 5 git commands to generate.