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