<?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: printer options in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-options/m-p/2985017#M123085</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;PCL5  ?&lt;BR /&gt;&lt;BR /&gt;What type of printer is it . How is it attached to your box.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;See&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.hp.com/pond/modelscripts/" target="_blank"&gt;http://www.hp.com/pond/modelscripts/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;            Steve Steel</description>
    <pubDate>Thu, 05 Jun 2003 10:43:03 GMT</pubDate>
    <dc:creator>Steve Steel</dc:creator>
    <dc:date>2003-06-05T10:43:03Z</dc:date>
    <item>
      <title>printer options</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-options/m-p/2985003#M123071</link>
      <description>How to adjust the A4 size, it means I want to print 50 rows&lt;BR /&gt;one page in the A4 while lp command to print the file.</description>
      <pubDate>Fri, 30 May 2003 08:03:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-options/m-p/2985003#M123071</guid>
      <dc:creator>j773303</dc:creator>
      <dc:date>2003-05-30T08:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: printer options</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-options/m-p/2985004#M123072</link>
      <description>HI,&lt;BR /&gt;&lt;BR /&gt;If it is a text file, you can try with pr -l50 | lp &lt;BR /&gt;&lt;BR /&gt;You can use the printer options through the -o option in lp command&lt;BR /&gt;&lt;BR /&gt;lp -o option&lt;BR /&gt;&lt;BR /&gt;See the printer script file for more details. (/var/spool/lp/interface/printer_name)&lt;BR /&gt;&lt;BR /&gt;Frank.</description>
      <pubDate>Fri, 30 May 2003 08:16:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-options/m-p/2985004#M123072</guid>
      <dc:creator>Francisco J. Soler</dc:creator>
      <dc:date>2003-05-30T08:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: printer options</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-options/m-p/2985005#M123073</link>
      <description>Francisco is right about the pr command, but you might want to add the -n flag to suppress the header which would otherwise print.  Its annoying.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Fri, 30 May 2003 15:52:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-options/m-p/2985005#M123073</guid>
      <dc:creator>Chris Vail</dc:creator>
      <dc:date>2003-05-30T15:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: printer options</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-options/m-p/2985006#M123074</link>
      <description>I have try the pr -l50 test.txt | lp -d twn105, but I don't see the right result what I want. Is it the command error?</description>
      <pubDate>Mon, 02 Jun 2003 00:09:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-options/m-p/2985006#M123074</guid>
      <dc:creator>j773303</dc:creator>
      <dc:date>2003-06-02T00:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: printer options</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-options/m-p/2985007#M123075</link>
      <description>Hi &lt;BR /&gt;What is the number of rows are you printing with the pr command?&lt;BR /&gt;&lt;BR /&gt;What is now the problem?&lt;BR /&gt;&lt;BR /&gt;Frank.</description>
      <pubDate>Mon, 02 Jun 2003 06:15:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-options/m-p/2985007#M123075</guid>
      <dc:creator>Francisco J. Soler</dc:creator>
      <dc:date>2003-06-02T06:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: printer options</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-options/m-p/2985008#M123076</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Look at&lt;BR /&gt;lp -on -otl50 -ol54&lt;BR /&gt;&lt;BR /&gt;You may get problems with the&lt;BR /&gt;hardware pagefeed on the printer.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;                  Steve Steel &lt;BR /&gt;</description>
      <pubDate>Mon, 02 Jun 2003 06:39:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-options/m-p/2985008#M123076</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2003-06-02T06:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: printer options</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-options/m-p/2985009#M123077</link>
      <description>The printer default line is 66. It is not enough for my ouput report. I'd like to have the 70 rows for A4 size paper.</description>
      <pubDate>Mon, 02 Jun 2003 06:40:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-options/m-p/2985009#M123077</guid>
      <dc:creator>j773303</dc:creator>
      <dc:date>2003-06-02T06:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: printer options</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-options/m-p/2985010#M123078</link>
      <description>What is the printer model?&lt;BR /&gt;&lt;BR /&gt;See the /var/spool/lp/interface/twn105 &lt;BR /&gt;and check what option is right for you, then use the -o option, for example:&lt;BR /&gt;&lt;BR /&gt;lp -ol070 or lp -otl070 -dtwn105&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Frank.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Jun 2003 07:27:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-options/m-p/2985010#M123078</guid>
      <dc:creator>Francisco J. Soler</dc:creator>
      <dc:date>2003-06-02T07:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: printer options</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-options/m-p/2985011#M123079</link>
      <description>The model script is PCL5,&lt;BR /&gt;It seems -ol070 and -otl070 &lt;BR /&gt;don't affect the page length.&lt;BR /&gt;But I try to modify PCL5 directly, chage the length='ln70', this is work. But if add -ol or -otl parameters with lp command, the result will failed.</description>
      <pubDate>Mon, 02 Jun 2003 08:45:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-options/m-p/2985011#M123079</guid>
      <dc:creator>j773303</dc:creator>
      <dc:date>2003-06-02T08:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: printer options</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-options/m-p/2985012#M123080</link>
      <description>If you have the printer attached directly to your machine, you can try print directly to it.&lt;BR /&gt;&lt;BR /&gt;pr -l70 text_file &amp;gt; /dev/lp_device&lt;BR /&gt;&lt;BR /&gt;Frank.</description>
      <pubDate>Mon, 02 Jun 2003 09:26:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-options/m-p/2985012#M123080</guid>
      <dc:creator>Francisco J. Soler</dc:creator>
      <dc:date>2003-06-02T09:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: printer options</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-options/m-p/2985013#M123081</link>
      <description>Is it possible set the printer control code in the front of the file which will printed? How to get the printer control code?</description>
      <pubDate>Tue, 03 Jun 2003 01:19:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-options/m-p/2985013#M123081</guid>
      <dc:creator>j773303</dc:creator>
      <dc:date>2003-06-03T01:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: printer options</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-options/m-p/2985014#M123082</link>
      <description>Hi,&lt;BR /&gt;You can put the control codes with echo command:&lt;BR /&gt;&lt;BR /&gt;For example to put an ESC character you can do:&lt;BR /&gt;&lt;BR /&gt;echo "\033" &amp;gt; dest_file&lt;BR /&gt;cat your_file &amp;gt;&amp;gt; dest_file&lt;BR /&gt;&lt;BR /&gt;where the number \nnn is in octal mode&lt;BR /&gt;&lt;BR /&gt;Frank.</description>
      <pubDate>Tue, 03 Jun 2003 06:07:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-options/m-p/2985014#M123082</guid>
      <dc:creator>Francisco J. Soler</dc:creator>
      <dc:date>2003-06-03T06:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: printer options</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-options/m-p/2985015#M123083</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You always need a page length text length difference&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;try&lt;BR /&gt;&lt;BR /&gt;Look at &lt;BR /&gt;lp -on -otl70 -ol74 &lt;BR /&gt;&lt;BR /&gt;and if that isno good try adding -oc&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;          Steve Steel</description>
      <pubDate>Tue, 03 Jun 2003 07:00:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-options/m-p/2985015#M123083</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2003-06-03T07:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: printer options</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-options/m-p/2985016#M123084</link>
      <description>I try the solution from above suggestion. It is ok in other model script, such as net_lj5x ...... But now the printer model script is PCL5, it is seems not compitable with&lt;BR /&gt;PCL5. I'd appreciate that someone could give me more suggestions.</description>
      <pubDate>Thu, 05 Jun 2003 08:35:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-options/m-p/2985016#M123084</guid>
      <dc:creator>j773303</dc:creator>
      <dc:date>2003-06-05T08:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: printer options</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-options/m-p/2985017#M123085</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;PCL5  ?&lt;BR /&gt;&lt;BR /&gt;What type of printer is it . How is it attached to your box.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;See&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.hp.com/pond/modelscripts/" target="_blank"&gt;http://www.hp.com/pond/modelscripts/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;            Steve Steel</description>
      <pubDate>Thu, 05 Jun 2003 10:43:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-options/m-p/2985017#M123085</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2003-06-05T10:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: printer options</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-options/m-p/2985018#M123086</link>
      <description>The PCL5 script is designed for locally connected printeres such as serial or parallel. If the printer is using an HP JetDirect LAN card, then PCL5 is not the correct script to use. You can add the printer using addqueue and it will pick the right model script:&lt;BR /&gt;&lt;BR /&gt;/opt/hpnpl/bin/addqueue -h IP_address -q new_queue_name&lt;BR /&gt;&lt;BR /&gt;Now it is important to test the row count with a plain ASCII fle (which is not a man page or some other preformatted file). The reason is that setting the printer options will not override imbedded formfeeds inside the print job. Use the /etc/profile or /etc/ntp.conf file as a source. They are fairly long and have no carriage controls inside the file.&lt;BR /&gt;&lt;BR /&gt;You can easily create more lines on the page by adjusting the interline spacing with -ovsi as in:&lt;BR /&gt;&lt;BR /&gt;lp -dprinter -ovsi8 /etc/profile&lt;BR /&gt;&lt;BR /&gt;-ovsi can have fractional numbers like -ovsi5.67 for finer control over the line spacing. Note that this assumes that people are not 'playing' with the front panel defaults for the printer. Network printers should always be set to 100% defaults and each job then overrides these defaults. If a different font or line spacing is set in the printer, the script will know nothing about this.&lt;BR /&gt;&lt;BR /&gt;Note that imbedding special escape sequences in the data stream works fine but you need to read (PCL5 tech ref) about the interaction between the font size, vertical spacing index, logical page length, etc. And these sequences are fine for the majority of HP LaserJet printers but may be incompatible with non-HP printers.</description>
      <pubDate>Thu, 05 Jun 2003 11:03:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-options/m-p/2985018#M123086</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-06-05T11:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: printer options</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-options/m-p/2985019#M123087</link>
      <description>This is due to my customer company environment. It's hard to ask them to change the PCL5 script. Because the printed document will includeed electronic code, and PCL5 is still configuration for another application. BTW, the printer is HP laserjet 8100, but the model script is PCL5, I'd just want to know, is it possible to set the page length in PCL5 on hp laserjet 8100.&lt;BR /&gt;I have try to modify the PCL5 script directly, it is done. But due to the system still have the other application will use the printer. So, the best way is include the parameters in lp command. Is it possilbe to do this?</description>
      <pubDate>Fri, 06 Jun 2003 00:33:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-options/m-p/2985019#M123087</guid>
      <dc:creator>j773303</dc:creator>
      <dc:date>2003-06-06T00:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: printer options</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/printer-options/m-p/2985020#M123088</link>
      <description>The important question is whether the PCL5 script has already been modified. Use the diff command to compare the original PCL5 model in /usr/lib/lp/model with the current script in /var/spool/lp/request (or /var/spool/lp/request/model.orig if the LaserJet 8100 is a network printer). There is no problem with specifying different vsi values to get more lines on the page. The real question is whether the logical page has been modified in the script. If it was not done correctly, then attempts to override the new value may fail.&lt;BR /&gt;&lt;BR /&gt;If the PCL5 script is non-standard, you have anotgher choice if the printer is on the network with an HP JetDirect card.  You can create another printqueue with the standard net_ljx000 script and then use the -o options as needed. NOTE: this assumes that the datafile you are rpinting does not have any PCL codes of formfeeds already in the file.</description>
      <pubDate>Fri, 06 Jun 2003 00:51:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/printer-options/m-p/2985020#M123088</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-06-06T00:51:56Z</dc:date>
    </item>
  </channel>
</rss>

