]> git.ipfire.org Git - thirdparty/cups.git/blame - test/ippserver.man
Use ALL_DSOFLAGS and ALL_LDFLAGS to avoid issues with some build frameworks.
[thirdparty/cups.git] / test / ippserver.man
CommitLineData
83ce8172 1.\"
83ce8172
MS
2.\" ippserver man page for CUPS.
3.\"
4.\" Copyright 2014 by Apple Inc.
5.\"
e3101897 6.\" Licensed under Apache License v2.0. See the file "LICENSE" for more information.
83ce8172
MS
7.\"
8.TH ippserver 1 "CUPS" "28 August 2014" "Apple Inc."
9.SH NAME
10ippserver \- a simple internet printing protocol server
11.SH SYNOPSIS
12.B ippserver
13[
14.B \-2
15] [
16.B \-M
17.I manufacturer
18] [
19.B \-P
20] [
21.B \-c
22.I command
23] [
24.B \-d
25.I spool-directory
26] [
27.B \-f
28.I type/subtype[,...]
29] [
30.B \-h
31] [
32.B \-i
33.I iconfile.png
34] [
35.B \-k
36] [
37.B \-l
38.I location
39] [
40.B \-m
41.I model
42] [
43.B \-n
44.I hostname
45] [
46.B \-p
47.I port
48] [
49.B \-r
50.I subtype
51] [
52.B \-s
53.I speed[,color-speed]
54] [
55.B \-v[vvv]
56]
57.I service-name
58.SH DESCRIPTION
59.B ippserver
60is 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.
61.SH OPTIONS
62The following options are recognized by
63.B ippserver:
64.TP 5
65.B \-2
66Report support for two-sided (duplex) printing.
67.TP 5
68\fB\-M \fImanufacturer\fR
69Set the manufacturer of the printer.
70The default is "Test".
71.TP 5
72.B \-P
73Report support for PIN printing.
74.TP 5
75\fB\-c \fIcommand\fR
76Run the specified command for each document that is printed.
77.TP 5
78\fB\-d \fIspool-directory\fR
79Specifies the directory that will hold the print files.
80The default is a directory under the user's current temporary directory.
81.TP 5
82\fB\-f \fItype/subtype[,...]\fR
83Specifies a list of MIME media types that the server will accept.
84The default is "application/pdf,image/jpeg,image/pwg-raster".
85.TP 5
86.B \-h
87Shows program help.
88.TP 5
89\fB\-i \fIiconfile.png\fR
90Specifies the printer icon file for the server.
91The default is "printer.png".
92.TP 5
93.B \-k
94Keeps the print documents in the spool directory rather than deleting them.
95.TP 5
96\fB\-l \fIlocation\fR
97Specifies the human-readable location string that is reported by the server.
98The default is the empty string.
99.TP 5
100\fB\-m \fImodel\fR
101Specifies the model name of the printer.
102The default is "Printer".
103.TP 5
104\fB\-n \fIhostname\fR
105Specifies the hostname that is reported by the server.
106The default is the name returned by the
107.BR hostname (1)
108command.
109.TP 5
110\fB\-p \fIport\fR
111Specifies the port number to listen on.
112The default is a user-specific number from 8000 to 8999.
113.TP 5
114\fB\-r \fIsubtype\fR
115Specifies the Bonjour subtype(s) to advertise.
116Separate multiple subtypes with a comma.
117The default is "_print".
118.TP 5
119\fB\-s \fIspeed[,color-speed]\fR
120Specifies the printer speed in pages per minute.
121If two numbers are specified and the second number is greater than zero, the server will report support for color printing.
122The default is "10,0".
123.TP 5
124.B \-v[vvv]
125Be (very) verbose when logging activity to the standard output.
126.SH EXIT STATUS
127The
128.B ippserver
129program returns 1 if it is unable to process the command-line arguments or register the IPP service.
130Otherwise
131.B ippserver
132will run continuously until terminated.
133.SH CONFORMING TO
134The
135.B ippserver
136program is unique to CUPS and conforms to the IPP Everywhere (PWG 5100.14) specification.
137.SH ENVIRONMENT
138.B ippserver
139adds environment variables starting with "IPP_" for all IPP Job attributes in the print request.
140For 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.
141.LP
142Enumerated values are converted to their keyword equivalents.
143For 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".
144.SH EXAMPLES
145Run
146.B ippserver
147with a service name of My Cool Printer:
148.nf
149
150 ippserver "My Cool Printer"
151.fi
152.LP
153Run the
154.BR file (1)
155command whenever a job is sent to the server:
156.nf
157
158 ippserver \-c file "My Cool Printer"
159.fi
160.SH SEE ALSO
161PWG Internet Printing Protocol Workgroup (http://www.pwg.org/ipp)
162.SH COPYRIGHT
163Copyright \[co] 2007-2014 by Apple Inc.