1backend(7)                        Apple Inc.                        backend(7)
2
3
4

NAME

6       backend - cups backend transmission interfaces
7
8

SYNOPSIS

10       backend
11       backend job user title num-copies options [ filename ]
12
13

DESCRIPTION

15       Backends  are  a  special type of filter(7) which is used to send print
16       data to and discover different devices on the system.
17
18
19       Like filters, backends must be capable of reading from  a  filename  on
20       the command-line or from the standard input, copying the standard input
21       to a temporary file as required by the physical interface.
22
23
24       The command name (argv[0]) is set to the device URI of the  destination
25       printer.   Starting with CUPS 1.1.22, any authentication information in
26       argv[0] is  removed,  so  backend  developers  are  urged  to  use  the
27       DEVICE_URI  environment variable whenever authentication information is
28       required. The CUPS API includes  a  cupsBackendDeviceURI  function  for
29       retrieving the correct device URI.
30
31
32       Back-channel  data from the device should be relayed to the job filters
33       by writing to file descriptor  3.  The  CUPS  API  includes  the  cups‐
34       BackChannelWrite function for this purpose.
35
36

DEVICE DISCOVERY

38       When  run  with  no  arguments, the backend should list the devices and
39       schemes it supports or is advertising to stdout. The output consists of
40       zero or more lines consisting of any of the following forms:
41
42           device-class scheme "Unknown" "device-info"
43           device-class device-uri "device-make-and-model" "device-info"
44           device-class device-uri "device-make-and-model" "device-info" "device-id"
45           device-class device-uri "device-make-and-model" "device-info" "device-id" "device-location"
46
47
48       The device-class field is one of the following values:
49
50
51       direct
52            The  device-uri  refers to a specific direct-access device with no
53            options, such as a parallel, USB, or SCSI device.
54
55
56       file
57            The device-uri refers to a file on disk.
58
59
60       network
61            The device-uri refers to a networked device and  conforms  to  the
62            general form for network URIs.
63
64
65       serial
66            The  device-uri  refers  to a serial device with configurable baud
67            rate and other options. If the device-uri contains a  baud  value,
68            it represents the maximum baud rate supported by the device.
69
70
71       The scheme field provides the URI scheme that is supported by the back‐
72       end. Backends should use this form only when the backend  supports  any
73       URI  using  that scheme. The device-uri field specifies the full URI to
74       use when communicating with the device.
75
76
77       The device-make-and-model field specifies the make  and  model  of  the
78       device,  e.g.  "Acme  Foojet 2000". If the make and model is not known,
79       you must report "Unknown".
80
81
82       The  device-info  field  specifies  additional  information  about  the
83       device.  Typically this includes the make and model along with the port
84       number or network address, e.g. "Acme Foojet 2000 USB #1".
85
86
87       The optional device-id field specifies the IEEE-1284 device  ID  string
88       for the device, which is used to select a matching driver.
89
90
91       The  optional  device-location field specifies the physical location of
92       the device, which is often used to  pre-populate  the  printer-location
93       attribute when adding a printer.
94
95

PERMISSIONS

97       Backends  without  world  execute permissions are run as the root user.
98       Otherwise, the backend is run using the unprivileged user account, typ‐
99       ically "lp".
100
101

EXIT CODES

103       The  following  exit  codes  are  defined for backends; C API constants
104       defined in the <cups/backend.h> header file are defined in parenthesis:
105
106
107       0 (CUPS_BACKEND_OK)
108            The print file was  successfully  transmitted  to  the  device  or
109            remote server.
110
111
112       1 (CUPS_BACKEND_FAILED)
113            The  print  file was not successfully transmitted to the device or
114            remote server. The scheduler will respond to this by canceling the
115            job,  retrying  the  job,  or  stopping the queue depending on the
116            state of the error-policy attribute.
117
118
119       2 (CUPS_BACKEND_AUTH_REQUIRED)
120            The print file was  not  successfully  transmitted  because  valid
121            authentication information is required. The scheduler will respond
122            to this by holding the job and adding the  authentication-required
123            job-reasons keyword.
124
125
126       3 (CUPS_BACKEND_HOLD)
127            The  print file was not successfully transmitted because it cannot
128            be printed at this time. The scheduler will  respond  to  this  by
129            holding the job.
130
131
132       4 (CUPS_BACKEND_STOP)
133            The  print file was not successfully transmitted because it cannot
134            be printed at this time. The scheduler will  respond  to  this  by
135            stopping the queue.
136
137
138       5 (CUPS_BACKEND_CANCEL)
139            The  print  file  was  not successfully transmitted because one or
140            more attributes are not supported. The scheduler will  respond  to
141            this by canceling the job.
142
143
144       All other exit code values are reserved.
145
146

SEE ALSO

148       cupsd(8), cupsd.conf(5), filter(7),
149       http://localhost:631/help
150
151
153       Copyright 2007-2009 by Apple Inc.
154
155
156
15712 May 2009                          CUPS                           backend(7)
Impressum