]> git.ipfire.org Git - thirdparty/cups.git/blame - man/ippeveprinter.1
Update default PAM service (cups instead of other)
[thirdparty/cups.git] / man / ippeveprinter.1
CommitLineData
83ce8172 1.\"
d46dbe1b 2.\" ippeveprinter man page for CUPS.
83ce8172 3.\"
d46dbe1b 4.\" Copyright © 2014-2019 by Apple Inc.
83ce8172 5.\"
d46dbe1b
MS
6.\" Licensed under Apache License v2.0. See the file "LICENSE" for more
7.\" information.
83ce8172 8.\"
5ea07c61 9.TH ippeveprinter 1 "CUPS" "2 December 2019" "Apple Inc."
83ce8172 10.SH NAME
d46dbe1b 11ippeveprinter \- an ipp everywhere printer application for cups
83ce8172 12.SH SYNOPSIS
d46dbe1b 13.B ippeveprinter
83ce8172 14[
11da92e6
MS
15.B \-\-help
16] [
17.B \-\-no\-web\-forms
18] [
5ea07c61
MS
19.B \-\-pam\-service
20.I service
21] [
11da92e6
MS
22.B \-\-version
23] [
83ce8172
MS
24.B \-2
25] [
5ea07c61
MS
26.B \-A
27] [
dc84a5a4
MS
28.B \-D
29.I device-uri
30] [
ef4d439c
MS
31.B \-F
32.I output-type/subtype
33] [
dc84a5a4
MS
34.B \-K
35.I keypath
36] [
83ce8172
MS
37.B \-M
38.I manufacturer
39] [
40.B \-P
dc84a5a4
MS
41.I filename.ppd
42] [
43.B \-V
44.I ipp-version
45] [
46.B \-a
47.I filename.conf
83ce8172
MS
48] [
49.B \-c
50.I command
51] [
52.B \-d
53.I spool-directory
54] [
55.B \-f
56.I type/subtype[,...]
57] [
83ce8172
MS
58.B \-i
59.I iconfile.png
60] [
61.B \-k
62] [
63.B \-l
64.I location
65] [
66.B \-m
67.I model
68] [
69.B \-n
70.I hostname
71] [
72.B \-p
73.I port
74] [
75.B \-r
dc84a5a4 76.I subtype[,subtype]
83ce8172
MS
77] [
78.B \-s
79.I speed[,color-speed]
80] [
81.B \-v[vvv]
82]
83.I service-name
84.SH DESCRIPTION
d46dbe1b 85.B ippeveprinter
83ce8172
MS
86is a simple Internet Printing Protocol (IPP) server conforming to the IPP Everywhere (PWG 5100.14) specification. It can be used to test client software or act as a very basic print server that runs a command for every job that is printed.
87.SH OPTIONS
88The following options are recognized by
d46dbe1b 89.B ippeveprinter:
83ce8172 90.TP 5
11da92e6
MS
91.B \-\-help
92Show program usage.
93.TP 5
94.B \-\-no\-web\-forms
95Disable the web interface forms used to update the media and supply levels.
96.TP 5
5ea07c61
MS
97\fB\-\-pam\-service \fIservice\fR
98Set the PAM service name.
71023b17 99The default service is "cups".
5ea07c61 100.TP 5
11da92e6
MS
101.B \-\-version
102Show the CUPS version.
103.TP 5
83ce8172
MS
104.B \-2
105Report support for two-sided (duplex) printing.
106.TP 5
5ea07c61
MS
107.B \-A
108Enable authentication for the created printer.
109.B ippeveprinter
110uses PAM to authenticate HTTP Basic credentials.
111.TP 5
dc84a5a4
MS
112\fB\-D \fIdevice-uri\fR
113Set the device URI for print output.
114The URI can be a filename, directory, or a network socket URI of the form "socket://ADDRESS[:PORT]" (where the default port number is 9100).
115When specifying a directory,
116.B ippeveprinter
117will create an output file using the job ID and name.
118.TP 5
ef4d439c
MS
119\fB\-F \fIoutput-type/subtype[,...]\fR
120Specifies the output MIME media type.
121The default is "application/postscript" when the \fB\-P\fR option is specified.
122.TP 5
83ce8172
MS
123\fB\-M \fImanufacturer\fR
124Set the manufacturer of the printer.
dc84a5a4 125The default is "Example".
83ce8172 126.TP 5
dc84a5a4
MS
127\fB\-P \fIfilename.ppd\fR
128Load printer attributes from the specified PPD file.
129This option is typically used in conjunction with the
130.BR ippeveps (7)
131printer command ("\-c ippeveps").
132.TP 5
133\fB\-V 1.1\fR
134.TP 5
135\fB\-V 2.0\fR
136Specifies the maximum IPP version to report.
1372.0 is the default.
83ce8172
MS
138.TP 5
139\fB\-c \fIcommand\fR
140Run the specified command for each document that is printed.
dc84a5a4
MS
141If "command" is not an absolute path ("/path/to/command"),
142.B ippeveprinter
5da48e46 143looks for the command in the "command" subdirectory of the CUPS binary directory, typically /usr/lib/cups/command or /usr/libexec/cups/command.
dc84a5a4
MS
144The
145.BR cups-config (1)
146command can be used to discover the correct binary directory ("cups-config --serverbin").
147In addition, the CUPS_SERVERBIN environment variable can be used to override the default location of this directory - see the
148.BR cups (1)
149man page for more details.
83ce8172
MS
150.TP 5
151\fB\-d \fIspool-directory\fR
152Specifies the directory that will hold the print files.
153The default is a directory under the user's current temporary directory.
154.TP 5
155\fB\-f \fItype/subtype[,...]\fR
156Specifies a list of MIME media types that the server will accept.
dc84a5a4 157The default depends on the type of printer created.
83ce8172
MS
158.TP 5
159\fB\-i \fIiconfile.png\fR
160Specifies the printer icon file for the server.
dc84a5a4
MS
161The file must be a PNG format image.
162The default is an internally-provided PNG image.
83ce8172
MS
163.TP 5
164.B \-k
165Keeps the print documents in the spool directory rather than deleting them.
166.TP 5
167\fB\-l \fIlocation\fR
168Specifies the human-readable location string that is reported by the server.
169The default is the empty string.
170.TP 5
171\fB\-m \fImodel\fR
172Specifies the model name of the printer.
173The default is "Printer".
174.TP 5
175\fB\-n \fIhostname\fR
176Specifies the hostname that is reported by the server.
177The default is the name returned by the
178.BR hostname (1)
179command.
180.TP 5
181\fB\-p \fIport\fR
182Specifies the port number to listen on.
183The default is a user-specific number from 8000 to 8999.
184.TP 5
7a2be9fa
MS
185.B \-r off
186Turns off DNS-SD service advertisements entirely.
187.TP 5
dc84a5a4
MS
188\fB\-r \fIsubtype[,subtype]\fR
189Specifies the DNS-SD subtype(s) to advertise.
83ce8172
MS
190Separate multiple subtypes with a comma.
191The default is "_print".
192.TP 5
193\fB\-s \fIspeed[,color-speed]\fR
194Specifies the printer speed in pages per minute.
195If two numbers are specified and the second number is greater than zero, the server will report support for color printing.
196The default is "10,0".
197.TP 5
198.B \-v[vvv]
dc84a5a4 199Be (very) verbose when logging activity to standard error.
83ce8172
MS
200.SH EXIT STATUS
201The
d46dbe1b 202.B ippeveprinter
83ce8172
MS
203program returns 1 if it is unable to process the command-line arguments or register the IPP service.
204Otherwise
d46dbe1b 205.B ippeveprinter
83ce8172
MS
206will run continuously until terminated.
207.SH CONFORMING TO
208The
d46dbe1b 209.B ippeveprinter
83ce8172
MS
210program is unique to CUPS and conforms to the IPP Everywhere (PWG 5100.14) specification.
211.SH ENVIRONMENT
d46dbe1b 212.B ippeveprinter
83ce8172
MS
213adds environment variables starting with "IPP_" for all IPP Job attributes in the print request.
214For example, when executing a command for an IPP Job containing the "media" Job Template attribute, the "IPP_MEDIA" environment variable will be set to the value of that attribute.
215.LP
ef4d439c 216In addition, all IPP "xxx-default" and "pwg-xxx" Printer Description attributes are added to the environment.
dc84a5a4
MS
217For example, the "IPP_MEDIA_DEFAULT" environment variable will be set to the default value for the "media" Job Template attribute.
218.LP
83ce8172
MS
219Enumerated values are converted to their keyword equivalents.
220For example, a "print-quality" Job Template attribute with a enum value of 3 will become the "IPP_PRINT_QUALITY" environment variable with a value of "draft".
dc84a5a4
MS
221This string conversion only happens for standard Job Template attributes, currently "finishings", "orientation-requested", and "print-quality".
222.LP
ef4d439c 223Finally, the "CONTENT_TYPE" environment variable contains the MIME media type of the document being printed, the "DEVICE_URI" environment variable contains the device URI as specified with the "\-D" option, the "OUTPUT_FORMAT" environment variable contains the output MIME media type, and the "PPD" environment variable contains the PPD filename as specified with the "\-P" option.
dc84a5a4
MS
224.SH COMMAND OUTPUT
225Unless they communicate directly with a printer, print commands send printer-ready data to the standard output.
226.LP
227Print commands can send messages back to
228.B ippeveprinter
229on the standard error with one of the following prefixes:
230.TP 5
231\fBATTR: \fIattribute=value[ attribute=value]\fR
232Sets the named attribute(s) to the given values.
233Currently only the "job-impressions" and "job-impressions-completed" Job Status attributes and the "marker-xxx", "printer-alert", "printer-alert-description", "printer-supply", and "printer-supply-description" Printer Status attributes can be set.
234.TP 5
235\fBDEBUG: \fIDebugging message\fR
236Logs a debugging message if at least two \-v's have been specified.
237.TP 5
238\fBERROR: \fIError message\fR
239Logs an error message and copies the message to the "job-state-message" attribute.
240.TP 5
241\fBINFO: \fIInformational message\fR
242Logs an informational/progress message if \-v has been specified and copies the message to the "job-state-message" attribute unless an error has been reported.
243.TP 5
244\fBSTATE: \fIkeyword[,keyword,...]\fR
245Sets the printer's "printer-state-reasons" attribute to the listed keywords.
246.TP 5
247\fBSTATE: -\fIkeyword[,keyword,...]\fR
248Removes the listed keywords from the printer's "printer-state-reasons" attribute.
249.TP 5
250\fBSTATE: +\fIkeyword[,keyword,...]\fR
251Adds the listed keywords to the printer's "printer-state-reasons" attribute.
83ce8172
MS
252.SH EXAMPLES
253Run
d46dbe1b 254.B ippeveprinter
83ce8172
MS
255with a service name of My Cool Printer:
256.nf
257
d46dbe1b 258 ippeveprinter "My Cool Printer"
83ce8172
MS
259.fi
260.LP
261Run the
262.BR file (1)
263command whenever a job is sent to the server:
264.nf
265
dc84a5a4 266 ippeveprinter \-c /usr/bin/file "My Cool Printer"
83ce8172
MS
267.fi
268.SH SEE ALSO
ef4d439c
MS
269.BR ippevepcl (7),
270.BR ippeveps (7),
83ce8172
MS
271PWG Internet Printing Protocol Workgroup (http://www.pwg.org/ipp)
272.SH COPYRIGHT
d46dbe1b 273Copyright \[co] 2007-2019 by Apple Inc.