1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2 3<html> 4 <head> 5 <meta name="generator" content="HTML Tidy, see www.w3.org"> 6 <title>Parallel Printer</title> 7 <meta name="GENERATOR" content= 8 "Modular DocBook HTML Stylesheet Version 1.7"> 9 <link rel="HOME" title=" LPRng Reference Manual" href= 10 "index.htm"> 11 <link rel="UP" title="Printcap Database " href= 12 "printcapref.htm"> 13 <link rel="PREVIOUS" title="Remote Printer Using Socket API" 14 href="x5821.htm"> 15 <link rel="NEXT" title="Serial Printer" href="serial.htm"> 16 </head> 17 18 <body class="SECT1" bgcolor="#FFFFFF" text="#000000" link= 19 "#0000FF" vlink="#840084" alink="#0000FF"> 20 <div class="NAVHEADER"> 21 <table summary="Header navigation table" width="100%" border= 22 "0" cellpadding="0" cellspacing="0"> 23 <tr> 24 <th colspan="3" align="center">LPRng Reference Manual: 5 25 Sep 2003 (For LPRng-3.8.22)</th> 26 </tr> 27 28 <tr> 29 <td width="10%" align="left" valign="bottom"><a href= 30 "x5821.htm" accesskey="P">Prev</a></td> 31 32 <td width="80%" align="center" valign="bottom">Chapter 33 12. Printcap Database</td> 34 35 <td width="10%" align="right" valign="bottom"><a href= 36 "serial.htm" accesskey="N">Next</a></td> 37 </tr> 38 </table> 39 <hr align="LEFT" width="100%"> 40 </div> 41 42 <div class="SECT1"> 43 <h1 class="SECT1"><a name="AEN5848">12.9. Parallel 44 Printer</a></h1> 45 46 <p>The parallel printer printcap is very simple.</p> 47 48 <div class="INFORMALEXAMPLE"> 49 <a name="AEN5851"></a> 50<pre class="SCREEN"> 51 # parallel printer 52 lp: 53 :lp=/dev/lpr 54</pre> 55 </div> 56 57 <ol type="1"> 58 <li> 59 <p>The <var class="LITERAL">lp=/dev/lpr</var> specifies 60 that <b class="APPLICATION">lpd</b> should open the 61 device for APPEND and simply transfer job files to 62 it.</p> 63 </li> 64 65 <li> 66 <p>The <var class="LITERAL">sh</var> and <var class= 67 "LITERAL">sf</var> will prevent <b class= 68 "APPLICATION">lpd</b> from trying to generate banner 69 pages or put form feeds between jobs.</p> 70 </li> 71 </ol> 72 <br> 73 <br> 74 75 <p>If you discover that UNIX print jobs result in a <span 76 class="emphasis"><i class="EMPHASIS">staircase</i></span> 77 appearance, then you need to force your printer to do 78 <acronym class="ACRONYM">LF</acronym> (linefeed) to <tt 79 class="FILENAME">CR/LF</tt> (carriage return/line feed) 80 translation, or do the translation yourself.</p> 81 82 <div class="INFORMALEXAMPLE"> 83 <a name="AEN5867"></a> 84<pre class="SCREEN"> 85 # Simple parallel printer 86 lp: 87 :lp=/dev/lpr 88 :filter=/usr/local/bin/lpf 89</pre> 90 </div> 91 <br> 92 <br> 93 94 <p>By using the <var class="LITERAL">if=...lpf</var> filter, 95 the job will be passed through the <b class= 96 "APPLICATION">lpf</b> filter, which will do the <acronym 97 class="ACRONYM">LF</acronym> to <tt class= 98 "FILENAME">CR/LF</tt> translation.</p> 99 100 <p>If you have a more complex printer that handles 101 PostScript, PCL, and PJL, then you will need to use the more 102 powerful <b class="APPLICATION">ifhp</b> filter:</p> 103 104 <div class="INFORMALEXAMPLE"> 105 <a name="AEN5876"></a> 106<pre class="SCREEN"> 107 # Simple parallel printer 108 lp: 109 :lp=/dev/lpr 110 :ifhp=model=hp4,status@ 111 :of=/usr/local/libexec/filters/ifhp 112 :filter=/usr/local/libexec/filters/ifhp 113</pre> 114 </div> 115 <br> 116 <br> 117 118 <p>See <a href="ifhp.htm"><b class="APPLICATION">ifhp</b> 119 Filter</a> for details. This entry will specify that the 120 printer is an HP4, and that no status information is 121 available. This is usually the case with a parallel port.</p> 122 </div> 123 124 <div class="NAVFOOTER"> 125 <hr align="LEFT" width="100%"> 126 127 <table summary="Footer navigation table" width="100%" border= 128 "0" cellpadding="0" cellspacing="0"> 129 <tr> 130 <td width="33%" align="left" valign="top"><a href= 131 "x5821.htm" accesskey="P">Prev</a></td> 132 133 <td width="34%" align="center" valign="top"><a href= 134 "index.htm" accesskey="H">Home</a></td> 135 136 <td width="33%" align="right" valign="top"><a href= 137 "serial.htm" accesskey="N">Next</a></td> 138 </tr> 139 140 <tr> 141 <td width="33%" align="left" valign="top">Remote Printer 142 Using Socket API</td> 143 144 <td width="34%" align="center" valign="top"><a href= 145 "printcapref.htm" accesskey="U">Up</a></td> 146 147 <td width="33%" align="right" valign="top">Serial 148 Printer</td> 149 </tr> 150 </table> 151 </div> 152 </body> 153</html> 154 155