1backend(7)                  Easy Software Products                  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
46
47       The device-class field is one of the following values:
48
49
50       direct
51            The  device-uri  refers to a specific direct-access device with no
52            options, such as a parallel, USB, or SCSI device.
53
54
55       file
56            The device-uri refers to a file on disk.
57
58
59       network
60            The device-uri refers to a networked device and  conforms  to  the
61            general form for network URIs.
62
63
64       serial
65            The  device-uri  refers  to a serial device with configurable baud
66            rate and other options. If the device-uri contains a  baud  value,
67            it represents the maximum baud rate supported by the device.
68
69
70       The scheme field provides the URI scheme that is supported by the back‐
71       end. Backends should use this form only when the backend  supports  any
72       URI  using  that scheme. The device-uri field specifies the full URI to
73       use when communicating with the device.
74
75
76       The device-make-and-model field specifies the make  and  model  of  the
77       device,  e.g.  "Acme  Foojet 2000". If the make and model is not known,
78       you must report "Unknown".
79
80
81       The  device-info  field  specifies  additional  information  about  the
82       device.  Typically this includes the make and model along with the port
83       number or network address, e.g. "Acme Foojet 2000 USB #1".
84
85
86       The optional device-id field specifies the IEEE-1284 device  ID  string
87       for the device, which is used to select a matching driver.
88
89

PERMISSIONS

91       Backends  without  world  execute permissions are run as the root user.
92       Otherwise, the backend is run using the unprivileged user account, typ‐
93       ically "lp".
94
95

EXIT CODES

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

SEE ALSO

142       cupsd(8), cupsd.conf(5), filter(7)
143       http://localhost:631/help
144
145
147       Copyright 1997-2006 by Easy Software Products, All Rights Reserved.
148
149
150
15120 March 2006             Common UNIX Printing System               backend(7)
Impressum