File: append-z.htm

package info (click to toggle)
lprng 3.8.10-1.2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 13,076 kB
  • ctags: 4,348
  • sloc: ansic: 35,394; sh: 10,756; perl: 2,210; makefile: 1,046
file content (145 lines) | stat: -rw-r--r-- 5,389 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta name="generator" content="HTML Tidy, see www.w3.org">
    <title>The -Z Passthrough to Filter Options</title>
    <meta name="GENERATOR" content=
    "Modular DocBook HTML Stylesheet Version 1.71 ">
    <link rel="HOME" title=" LPRng-HOWTO" href="index.htm">
    <link rel="UP" title="lpr - Job Spooler Program" href=
    "lpr.htm">
    <link rel="PREVIOUS" title="Remove Files After Spooling" href=
    "x4320.htm">
    <link rel="NEXT" title="Record Queue Name in Control File "
    href="qq.htm">
  </head>

  <body class="SECT1" bgcolor="#FFFFFF" text="#000000" link=
  "#0000FF" vlink="#840084" alink="#0000FF">
    <div class="NAVHEADER">
      <table summary="Header navigation table" width="100%" border=
      "0" cellpadding="0" cellspacing="0">
        <tr>
          <th colspan="3" align="center">LPRng-HOWTO: 1 Apr 2002
          (For LPRng-3.8.10)</th>
        </tr>

        <tr>
          <td width="10%" align="left" valign="bottom"><a href=
          "x4320.htm" accesskey="P">Prev</a></td>

          <td width="80%" align="center" valign="bottom">Chapter 6.
          <b class="APPLICATION">lpr</b> - Job Spooler Program</td>

          <td width="10%" align="right" valign="bottom"><a href=
          "qq.htm" accesskey="N">Next</a></td>
        </tr>
      </table>
      <hr align="LEFT" width="100%">
    </div>

    <div class="SECT1">
      <h1 class="SECT1"><a name="APPEND-Z">6.7. The -Z Passthrough
      to Filter Options</a></h1>

      <p>Options used:</p>

      <ul>
        <li>
          <p><tt class="LITERAL">append_z=</tt><i class=
          "EMPHASIS">Append values to Z options list</i></p>
        </li>

        <li>
          <p><tt class="LITERAL">prefix_z=</tt><i class=
          "EMPHASIS">Prefix values to Z options list</i></p>
        </li>

        <li>
          <p><tt class="LITERAL">remove_z=</tt><i class=
          "EMPHASIS">Remove values from Z options list</i></p>
        </li>

        <li>
          <p><tt class="LITERAL">prefix_s_to_z</tt> FLAG <i class=
          "EMPHASIS">Prefix control file S to Z information</i></p>
        </li>

        <li>
          <p><tt class="LITERAL">prefix_s_to_z</tt> FLAG <i class=
          "EMPHASIS">Prefix control file Z to S information</i></p>
        </li>
      </ul>
      <br>
      <br>

      <p>By convention all of the values specified with the <tt
      class="COMMAND">lpr -Z</tt> option are placed in the job
      control file and passed to the <b class="APPLICATION">lpd</b>
      server, which turn passes them to the print filters. This
      allows users to pass options that are not part of the RFC1179
      repetoire to filters.</p>

      <p>In addition to this simple method of providing options, we
      can have the <b class="APPLICATION">lpr</b> and <b class=
      "APPLICATION">lpd</b> systems add options to the control file
      information. The <tt class="LITERAL">prefix_z</tt> and <tt
      class="LITERAL">append_z</tt> options allow us to put Z
      options at the start or end of the user provided list; the
      <tt class="LITERAL">remove_z</tt> removes specified options
      from the list.</p>

      <p>The <tt class="LITERAL">prefix_s_to_z</tt> and <tt class=
      "LITERAL">prefix_z_to_s</tt> options are usually used by the
      <b class="APPLICATION">lpd</b> server, and provides a simple
      way to have the SystemV <tt class="COMMAND">lp -o option</tt>
      values put into the <tt class="LITERAL">Z</tt> options value.
      This is very useful when existing SysV <b class=
      "APPLICATION">lp</b> print spooling systems need to be
      interfaced to <b class="APPLICATION">LPRng</b> and the
      options need to be handled in a meaningful manner. The <tt
      class="LITERAL">prefix_z_to_s</tt> is similarly used when you
      want to forward jobs to a SysV spooling system and have the
      options passed correctly.</p>

      <p>If present in the printer configuration, the various
      requested actions are are done by the <b class=
      "APPLICATION">lpr</b> client, the <b class=
      "APPLICATION">lpd</b> server on job reception, and the <b
      class="APPLICATION">lpd</b> server again on job processing.
      This redundancy ensures that jobs which are sent to this
      queue, arrive at this queue, or are processed by this queue
      have the options set appropriately.</p>
    </div>

    <div class="NAVFOOTER">
      <hr align="LEFT" width="100%">

      <table summary="Footer navigation table" width="100%" border=
      "0" cellpadding="0" cellspacing="0">
        <tr>
          <td width="33%" align="left" valign="top"><a href=
          "x4320.htm" accesskey="P">Prev</a></td>

          <td width="34%" align="center" valign="top"><a href=
          "index.htm" accesskey="H">Home</a></td>

          <td width="33%" align="right" valign="top"><a href=
          "qq.htm" accesskey="N">Next</a></td>
        </tr>

        <tr>
          <td width="33%" align="left" valign="top">Remove Files
          After Spooling</td>

          <td width="34%" align="center" valign="top"><a href=
          "lpr.htm" accesskey="U">Up</a></td>

          <td width="33%" align="right" valign="top">Record Queue
          Name in Control File</td>
        </tr>
      </table>
    </div>
  </body>
</html>