4 .\" ippfind man page for CUPS.
6 .\" Copyright 2013 by Apple Inc.
8 .\" These coded instructions, statements, and computer programs are the
9 .\" property of Apple Inc. and are protected by Federal copyright
10 .\" law. Distribution and use rights are outlined in the file "LICENSE.txt"
11 .\" which should have been included with this file. If this file is
12 .\" file is missing or damaged, see the license at "http://www.cups.org/".
14 .TH ippfind 1 "CUPS" "5 June 2013" "Apple Inc."
16 ippfind - find internet printing protocol printers
21 ] regtype[,subtype][.domain.] ... [
27 ] name[.regtype[.domain.]] ... [
34 .SH SUPPORTED REGISTRATION TYPES
35 \fIippfind\fR supports the following registration types:
38 HyperText Transport Protocol (HTTP, RFC 2616)
41 Secure HyperText Transport Protocol (HTTPS, RFC 2818)
44 Internet Printing Protocol (IPP, RFC 2911)
47 Secure Internet Printing Protocol (IPPS, draft)
50 Line Printer Daemon (LPD, RFC 1179)
67 Specify find timeout in seconds. If 1 or less, \fIippfind\fR stops as soon as it thinks it has found everything. The default is 1 second.
70 Specifies the IPP version when listing. Supported values are 1.1, 2.0, 2.1, and 2.2.
73 \fIippfind\fR finds printer services registered with the local DNS infrastructure or available through the local links.
76 \fIippfind\fR supports expressions much like the \fIfind(1)\fR utility. However, unlike \fIfind\fR, \fIippfind\fR uses POSIX regular expressions instead of shell filename matching patterns. If -e, --exec, -l, --ls, -p, --print, --print-name, -q, --quiet, or -s is not specified, \fIippfind\fR adds --print to print the service URI of anything it finds. The following expressions are supported:
81 True if the domain matches the given regular expression.
83 -e utility [argument ...] ;
85 --exec utility [argument ...] ;
86 Executes the specified program if the current result is true. "{foo}" arguments are replaced with the corresponding value - see SUBSTITUTIONS below.
94 True is the hostname matches the given regular expression.
99 Lists attributes returned by Get-Printer-Attributes for IPP printers and traditional \fIfind\fR "-ls" output for HTTP URLs. The result is true if the URI is accessible, false otherwise.
102 True if the service is local to this computer.
107 True if the service instance name matches the given regular expression.
110 True if the URI resource path matches the given regular expression.
114 --port number[-number]
115 True if the port matches the given number or range.
120 Prints the URI if the result of previous expressions is true. The result is always true.
125 Quiet mode - just returns the exit codes below.
130 True if the service is not local to this computer.
135 Prints the service instance name if the result of previous expressions is true. The result is always true.
143 True if the TXT record contains the named key.
145 --txt-\fIkey\fR regex
146 True if the TXT record contains the named key and matches the given regular
152 True if the URI matches the given regular expression.
154 Expressions may also contain modifiers:
157 Group the result of expressions.
162 Unary NOT of the expression.
164 expression expression
166 expression --and expression
167 Logical AND of expressions.
169 expression --or expression
170 Logical OR of expressions.
173 The substitutions for "{foo}" in -e and --exec are:
179 Domain name, e.g., "example.com.", "local.", etc.
182 Fully-qualified domain name, e.g., "printer.example.com.", "printer.local.", etc.
185 Service instance name, e.g., "My Fine Printer".
188 Port number for server, typically 631 for IPP and 80 for HTTP.
191 DNS-SD registration type, e.g., "_ipp._tcp", "_http._tcp", etc.
194 URI scheme for DNS-SD registration type, e.g., "ipp", "http", etc.
197 URI for service, e.g., "ipp://printer.local./ipp/print", "http://printer.local./", etc.
200 Value of TXT record \fIkey\fR (lowercase).
202 .SH ENVIRONMENT VARIABLES
203 When executing a program, \fIippfind\fR sets the following environment variables for the matching service registration:
205 IPPFIND_SERVICE_DOMAIN
206 Domain name, e.g., "example.com.", "local.", etc.
208 IPPFIND_SERVICE_HOSTNAME
209 Fully-qualified domain name, e.g., "printer.example.com.", "printer.local.", etc.
212 Service instance name, e.g., "My Fine Printer".
215 Port number for server, typically 631 for IPP and 80 for HTTP.
217 IPPFIND_SERVICE_REGTYPE
218 DNS-SD registration type, e.g., "_ipp._tcp", "_http._tcp", etc.
220 IPPFIND_SERVICE_SCHEME
221 URI scheme for DNS-SD registration type, e.g., "ipp", "http", etc.
224 URI for service, e.g., "ipp://printer.local./ipp/print", "http://printer.local./", etc.
226 IPPFIND_TXT_\fIKEY\fR
227 Values of TXT record \fIKEY\fR (uppercase).
230 \fIippfind\fR returns 0 if the result for all processed expressions is true, 1 if the result of any processed expression is false, 2 if browsing or any query or resolution failed, 3 if an undefined option or invalid expression was specified, and 4 if it ran out of memory.
236 Copyright 2013 by Apple Inc.