<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: interface scripts for remote printer in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/interface-scripts-for-remote-printer/m-p/3540286#M223103</link>
    <description>If the printer was added via SAM to be a remote printer, you do not have choice on the model/driver.&lt;BR /&gt;&lt;BR /&gt;If the printer was added via JetAdmin then you would have a choice. Typically most HP printers will communicate back to JetAdmin and say "this is the model/driver to use". Before you press the "0" key to complete the process, the JetAdmin will display the selections that have been made and give you the opportunity to change. Select the "model" and there should be a Dumb Model available.</description>
    <pubDate>Mon, 09 May 2005 10:34:40 GMT</pubDate>
    <dc:creator>Rick Garland</dc:creator>
    <dc:date>2005-05-09T10:34:40Z</dc:date>
    <item>
      <title>interface scripts for remote printer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/interface-scripts-for-remote-printer/m-p/3540285#M223102</link>
      <description>hi &lt;BR /&gt;I have configured a remote printer that is connected to the network through jetdirect adapter. this printer has a third party flash memory to print arabic reports. I faced a problem in the output that there is extra two pages of garbage, when I asked the vendor of the flash memory he told me that i need to use a standard UNIX printer definition called Line dump printer, other, or ASCII printer type. and disable local filtering.&lt;BR /&gt;how can I do that, known that the OS HP-UX 11i&lt;BR /&gt;the printer is HP laserjet 4050&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Burhan &lt;BR /&gt;</description>
      <pubDate>Mon, 09 May 2005 06:10:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/interface-scripts-for-remote-printer/m-p/3540285#M223102</guid>
      <dc:creator>Burhan I. Koni</dc:creator>
      <dc:date>2005-05-09T06:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: interface scripts for remote printer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/interface-scripts-for-remote-printer/m-p/3540286#M223103</link>
      <description>If the printer was added via SAM to be a remote printer, you do not have choice on the model/driver.&lt;BR /&gt;&lt;BR /&gt;If the printer was added via JetAdmin then you would have a choice. Typically most HP printers will communicate back to JetAdmin and say "this is the model/driver to use". Before you press the "0" key to complete the process, the JetAdmin will display the selections that have been made and give you the opportunity to change. Select the "model" and there should be a Dumb Model available.</description>
      <pubDate>Mon, 09 May 2005 10:34:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/interface-scripts-for-remote-printer/m-p/3540286#M223103</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2005-05-09T10:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: interface scripts for remote printer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/interface-scripts-for-remote-printer/m-p/3540287#M223104</link>
      <description>As mentioned, if the printer was added with lpadmin or SAM as a "remote" printer, there is no printer script, so data is sent in "Line dump printer" mode, also known as raw. Nothing is appended in HP-UX. You can verify that it is a remote printer with:&lt;BR /&gt; &lt;BR /&gt;lpstat -v&lt;BR /&gt; &lt;BR /&gt;Now if it was added to HP-UX with hppi (or the obsolete/deprecated jetadmin software), then there is indeed a model script. But it is really easy to bypass everything. Just print with lp -oraw or lp -orelay and that will remove any formatting. If that works OK, then you're all set *unless* you have special applications that do not allow and lp options. These programs commonly assume BSD printing and do not provide options for lp.&lt;BR /&gt; &lt;BR /&gt;The alternative for these canned programs is to create a new printer with a do-nothing script. HP has one called dummy although it does have some code for banner pages. So here's a truly dumb script:&lt;BR /&gt; &lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;# Truly dumb model script&lt;BR /&gt;# No options are used or recognized including copy count&lt;BR /&gt;# Does not support serial printers where the baud rate must be set&lt;BR /&gt; &lt;BR /&gt;export PATH=/usr/bin&lt;BR /&gt;export PATH&lt;BR /&gt; &lt;BR /&gt;# These are just for documentation - not used&lt;BR /&gt;JOB="$1" &lt;BR /&gt;NAME="$2"&lt;BR /&gt;DEV="$3" &lt;BR /&gt;TITLE="$4"&lt;BR /&gt;COPIES="$5"&lt;BR /&gt;OPTIONS="$6"&lt;BR /&gt;COPIES=$4&lt;BR /&gt;shift 5&lt;BR /&gt;FILES="$@"&lt;BR /&gt; &lt;BR /&gt;# Print the spooled files&lt;BR /&gt;for LPFILE in $FILES&lt;BR /&gt;do&lt;BR /&gt;  cat "$LPFILE" 2&amp;gt;&amp;amp;1&lt;BR /&gt;  echo "\014\c" # this is a formfeed, optional for some printers&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;exit&lt;BR /&gt; &lt;BR /&gt;---&lt;BR /&gt;Create another hppi copy of the same printer, then copy the above script on top of this new printer's script in /etc/lp/interface/model.orig</description>
      <pubDate>Mon, 09 May 2005 21:02:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/interface-scripts-for-remote-printer/m-p/3540287#M223104</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-05-09T21:02:52Z</dc:date>
    </item>
  </channel>
</rss>

