]> cygwin.com Git - cygwin-apps/cygutils.git/blob - src/lpr/lpr.1
Reimplement lpr in C++, Rick Rankin.
[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 " [ "\-h" "] [" "\-D" "] [" "\-d"
8 .I device
9 .RB "] [" "\-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-h\fP
19 does nothing and is accepted for compatibility only.
20 .TP
21 \fB-D\fP
22 enables some debugging output.
23 .TP
24 \fB-d\fP \fIdevice\fP
25 specifies the \fIdevice\fP to which to send the output.
26 .TP
27 \fB-P\fP \fIdevice\fP
28 an alias for \fB-d\fP.
29 .SH DEVICES
30 A device name may be a UNC path (\\\\server_name\\printer_name), a
31 reserved DOS device name (e.g., prn, lpt1), or a local port name that
32 is mapped to a printer share. Note that forward slashes may be used in
33 a UNC path also (e.g., //server_name/printer_name).
34 .SH ENVIRONMENT
35 A default device name may be specified in the \fBPRINTER\fP
36 environment variable. Specifying a device via a \fB-d\fP or \fB-P\fP
37 will override the environment variable setting.
38 .SH NOTES
39 Make sure that the default paper size setting is correct for the
40 program that is formatting the page. For example, for enscript, make
41 sure the \fBDefaultMedia\fP setting is correct in
42 \fB/etc/enscript.cfg\fP. If this setting is incorrect, it is possible
43 that no output at all will be produced by the printer. This is
44 \fBnot\fP an lpr issue.
45 .SH AUTHORS
46 Written by Rick Rankin.
47
This page took 0.036914 seconds and 5 git commands to generate.