<?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: Converting printer model script to filter in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-printer-model-script-to-filter/m-p/3057681#M137984</link>
    <description>Thanks so much Bill, So if I modify the interface program /etc/lp/interface/PR3 as follows it should be alright.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;shift; shift; shift; shift; shift &lt;BR /&gt;&lt;BR /&gt;#### change starts here ############### &lt;BR /&gt;&lt;BR /&gt;/usr/lib/lp/model/PCL5  $requestid  $(logname) $1 1 $1 | /usr/sbin/rlp -I$requestid $BSDC $BSDJ $BSDT $BSD1 $BSD2 $BSD3 $BSD4 $BSDw $BSDformat $BSDh &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 27 Aug 2003 15:30:57 GMT</pubDate>
    <dc:creator>Bonny Jose_2</dc:creator>
    <dc:date>2003-08-27T15:30:57Z</dc:date>
    <item>
      <title>Converting printer model script to filter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-printer-model-script-to-filter/m-p/3057669#M137972</link>
      <description>Guys, Please tell me how to convert the printer model script to filter? I want to convert the file placed through lp into printer recognised language before rlp sends it to remote LPD&lt;BR /&gt;Somebody please guide me&lt;BR /&gt;Thanks a lot&lt;BR /&gt;Bonny&lt;BR /&gt;</description>
      <pubDate>Wed, 27 Aug 2003 11:03:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-printer-model-script-to-filter/m-p/3057669#M137972</guid>
      <dc:creator>Bonny Jose_2</dc:creator>
      <dc:date>2003-08-27T11:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Converting printer model script to filter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-printer-model-script-to-filter/m-p/3057670#M137973</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Convert the file before you send it to lp&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;convertfile file|lp -dxxxx&lt;BR /&gt;&lt;BR /&gt;Changing printer scripts is not advised.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Anyway,what do you want to convert to what and what type of printer is it.&lt;BR /&gt;&lt;BR /&gt;               Steve Steel</description>
      <pubDate>Wed, 27 Aug 2003 11:09:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-printer-model-script-to-filter/m-p/3057670#M137973</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2003-08-27T11:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Converting printer model script to filter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-printer-model-script-to-filter/m-p/3057671#M137974</link>
      <description>I want to convert the printjob into "printer recognised Language" because the model script I am using is "rmodel" which just rlp the job to remote LPD.&lt;BR /&gt;The remote printer is a Laserjet printer on a Dlink print server.&lt;BR /&gt;Thanks&lt;BR /&gt;Bonny&lt;BR /&gt;</description>
      <pubDate>Wed, 27 Aug 2003 11:43:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-printer-model-script-to-filter/m-p/3057671#M137974</guid>
      <dc:creator>Bonny Jose_2</dc:creator>
      <dc:date>2003-08-27T11:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Converting printer model script to filter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-printer-model-script-to-filter/m-p/3057672#M137975</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Perhaps not a good idea to modify this scripts but if you want to try.&lt;BR /&gt;&lt;BR /&gt;If you list the printer interface script you will find a line :&lt;BR /&gt;&lt;BR /&gt;/usr/sbin/rlp -I$requestid $BSDC $BSDJ $BSDT $BSDi $BSD1 $BSD2 $BSD3 $BSD4 $BSDw $BSDformat $BSDh $1&lt;BR /&gt;&lt;BR /&gt;try to put some lines before this line:&lt;BR /&gt;&lt;BR /&gt;cat $1 |&lt;FILTER&gt; &amp;gt;/tmp/xyz&lt;BR /&gt;mv /tmp/xyz $1&lt;BR /&gt;&lt;/FILTER&gt;</description>
      <pubDate>Wed, 27 Aug 2003 12:02:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-printer-model-script-to-filter/m-p/3057672#M137975</guid>
      <dc:creator>Leif Halvarsson_2</dc:creator>
      <dc:date>2003-08-27T12:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Converting printer model script to filter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-printer-model-script-to-filter/m-p/3057673#M137976</link>
      <description>I think my question was not clear.&lt;BR /&gt;&lt;BR /&gt;What I want is a filter script for this purpose.&lt;BR /&gt;&lt;BR /&gt;I thought I can convert a model script into a filter script, But how?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Bonny&lt;BR /&gt;</description>
      <pubDate>Wed, 27 Aug 2003 12:15:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-printer-model-script-to-filter/m-p/3057673#M137976</guid>
      <dc:creator>Bonny Jose_2</dc:creator>
      <dc:date>2003-08-27T12:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Converting printer model script to filter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-printer-model-script-to-filter/m-p/3057674#M137977</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Ok try this&lt;BR /&gt;&lt;BR /&gt;In the model script /etc/lp/interface/printer&lt;BR /&gt;============================================&lt;BR /&gt;Change after the shift line&lt;BR /&gt;===========================================&lt;BR /&gt;shift; shift; shift; shift; shift&lt;BR /&gt;&lt;BR /&gt;#### change starts here ###############&lt;BR /&gt;&lt;BR /&gt;mv $1 ${file}.tmp&lt;BR /&gt;/usr/lbin/lprpp &amp;lt; ${file}.tmp  &amp;gt; $1&lt;BR /&gt;&lt;BR /&gt;##########end of change ###############&lt;BR /&gt;&lt;BR /&gt;       /usr/sbin/rlp -I$requestid $BSDC $BSDJ $BSDT $BSDi $BSD1 $BSD2 $BSD3&lt;BR /&gt;$BSD4 $BSDw $BSDformat $BSDh  $1&lt;BR /&gt;&lt;BR /&gt;==============================================&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;                      Steve Steel&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 27 Aug 2003 12:20:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-printer-model-script-to-filter/m-p/3057674#M137977</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2003-08-27T12:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: Converting printer model script to filter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-printer-model-script-to-filter/m-p/3057675#M137978</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;A remote printer driver just dumps the file to the printer.&lt;BR /&gt;&lt;BR /&gt;So this cannot become a filter.&lt;BR /&gt;&lt;BR /&gt;Either change as shown or translate your file and then print it which is easiest&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;             Steve Steel</description>
      <pubDate>Wed, 27 Aug 2003 13:18:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-printer-model-script-to-filter/m-p/3057675#M137978</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2003-08-27T13:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: Converting printer model script to filter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-printer-model-script-to-filter/m-p/3057676#M137979</link>
      <description>Perhaps I can help. All printer scripts in the model directory are already filters. They are invoked with a specific set of command line parameters, and the standard output of the script is a slightly modified version of the file(s) used as input to the script. So in the directory /usr/lib/lp/model, pick an appropriate model script, perhaps PCL5 which handles 90% of all HP printers. Then, to filter your print file, call it like this:&lt;BR /&gt;&lt;BR /&gt;/usr/lib/lp/model/PCL5 1 $(logname) MyFile 1 "-o options" /my_file_name | lp -dremote_printer&lt;BR /&gt;&lt;BR /&gt;where:&lt;BR /&gt;$1 = 1 = requestID (noramlly assigned by lpsched)&lt;BR /&gt;$2 = logname = userID submiting the job&lt;BR /&gt;$3 = MyFile = Title..anything you want as a title&lt;BR /&gt;$4 = 1 = number of copies&lt;BR /&gt;$5 = "-o stuff" = options&lt;BR /&gt;$6 = /my_file_name =  file to print&lt;BR /&gt;&lt;BR /&gt;NOTE: each parameter must be enclosed in " " if there are imbedded spaces. So to print /etc/profile in landscape mode:&lt;BR /&gt;&lt;BR /&gt;/usr/lib/lp/model/PCL5 1 $(logname) profile 1 "-olandscape" /etc/profile | lp -dremote_printer&lt;BR /&gt;&lt;BR /&gt;Now the JetDirect scripts are the only ones that are being kept up to date (/usr/lib/lp/model has 90% obsolete printers) but the more recent scripts may have JetDirect-specific code. You'll have to experiment with these scripts which are found in /opt/hpnpl/sh and remove any code that doesn't allow the script to work as a simple filter. net_ljx000 is a fairly generic script for all the new HP LaserJet models.</description>
      <pubDate>Wed, 27 Aug 2003 13:21:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-printer-model-script-to-filter/m-p/3057676#M137979</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-08-27T13:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Converting printer model script to filter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-printer-model-script-to-filter/m-p/3057677#M137980</link>
      <description>Thanks a Lot Steve, I think this is what I need. Does 'lprpp' convert the job($1) format to HP LASERJET format?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Bonny&lt;BR /&gt;</description>
      <pubDate>Wed, 27 Aug 2003 13:22:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-printer-model-script-to-filter/m-p/3057677#M137980</guid>
      <dc:creator>Bonny Jose_2</dc:creator>
      <dc:date>2003-08-27T13:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Converting printer model script to filter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-printer-model-script-to-filter/m-p/3057678#M137981</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.lexmark.com/US/products/networking/mvp/" target="_blank"&gt;http://www.lexmark.com/US/products/networking/mvp/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;should work with your printer&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;                 Steve Steel</description>
      <pubDate>Wed, 27 Aug 2003 13:24:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-printer-model-script-to-filter/m-p/3057678#M137981</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2003-08-27T13:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Converting printer model script to filter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-printer-model-script-to-filter/m-p/3057679#M137982</link>
      <description>Just a followup, the -o is stripped by lpsched so your option list for the model scripts should be just the options, no -o at all). Also, the default is to print a banner page, so your option list might need something like this:&lt;BR /&gt;&lt;BR /&gt;...PCL5... "landscape nb" /etc/profile ...&lt;BR /&gt;&lt;BR /&gt;You can add as many options as you like:&lt;BR /&gt;&lt;BR /&gt;"landscape nb duplex"&lt;BR /&gt;&lt;BR /&gt;and so on...</description>
      <pubDate>Wed, 27 Aug 2003 13:30:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-printer-model-script-to-filter/m-p/3057679#M137982</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-08-27T13:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Converting printer model script to filter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-printer-model-script-to-filter/m-p/3057680#M137983</link>
      <description>lprpp does not convert printer languages. It is used to take files like man pages that attempt to create BOLD print by backspacing and printing again. HP LaserJet printers are PCL which is nothing more than plain ASCII with optional escape sequences for special effects. And while a LaserJet printer can backspace, the character is still the same when placed onto the paper. So, lprpp senses the attempt to create bold from CHAR backspace CHAR by replacing the 3 characters with an escape sequence that selects the BOLD face from the current font.&lt;BR /&gt;&lt;BR /&gt;It also has options to print plain ASCII files by odd or even pages and assumes the default font in the printer will generate 60 or 66 lines per page. lprpp is almost useless for anthing but simple text files and is leftover from the days of perforated greenbar paper printers.</description>
      <pubDate>Wed, 27 Aug 2003 13:38:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-printer-model-script-to-filter/m-p/3057680#M137983</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-08-27T13:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Converting printer model script to filter</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-printer-model-script-to-filter/m-p/3057681#M137984</link>
      <description>Thanks so much Bill, So if I modify the interface program /etc/lp/interface/PR3 as follows it should be alright.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;shift; shift; shift; shift; shift &lt;BR /&gt;&lt;BR /&gt;#### change starts here ############### &lt;BR /&gt;&lt;BR /&gt;/usr/lib/lp/model/PCL5  $requestid  $(logname) $1 1 $1 | /usr/sbin/rlp -I$requestid $BSDC $BSDJ $BSDT $BSD1 $BSD2 $BSD3 $BSD4 $BSDw $BSDformat $BSDh &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 27 Aug 2003 15:30:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-printer-model-script-to-filter/m-p/3057681#M137984</guid>
      <dc:creator>Bonny Jose_2</dc:creator>
      <dc:date>2003-08-27T15:30:57Z</dc:date>
    </item>
  </channel>
</rss>

