]> cygwin.com Git - cygwin-apps/cygutils.git/blob - src/lpr/lpr.1
lump commit
[cygwin-apps/cygutils.git] / src / lpr / lpr.1
1 .\" -*-Nroff-*-
2 .\" Freely distributable under the terms of the GPL
3 .TH LPR 1 "22 Mar 2003 " "" ""
4 .SH NAME
5 lpr \- Spool files to a printer
6 .SH SYNOPSIS
7 .BR "lpr " [ "\-D" "] [" "\-d"
8 .I device
9 .RB "] [" "\-h" "] [" "\-l" "] [" "\-P"
10 .I device
11 .RB ]
12 .SH DESCRIPTION
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.
16 .SH OPTIONS
17 .TP
18 \fB-D\fP
19 enables some debugging output.
20 .TP
21 \fB-d\fP \fIdevice\fP
22 specifies the \fIdevice\fP to which to send the output.
23 .TP
24 \fB-h\fP
25 does nothing and is accepted for compatibility only.
26 .TP
27 \fB-l\fP
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.
32 .TP
33 \fB-P\fP \fIdevice\fP
34 an alias for \fB-d\fP.
35 .SH DEVICES
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).
40 .SH ENVIRONMENT
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.
44 .SH NOTES
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.
51 .SH AUTHORS
52 Written by Rick Rankin.
53
This page took 0.038963 seconds and 5 git commands to generate.