<?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: (Think tank) Scripting question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/think-tank-scripting-question/m-p/2646669#M45013</link>
    <description>Hi all,  either this can't be done or I have stumped all of you.  &lt;BR /&gt;I can print landscape fine.  &lt;BR /&gt;I don't want to print the whole report in bold, just certain header parts inside the report.&lt;BR /&gt;I can't think of any way to accomplish this.&lt;BR /&gt;Maybe someone else has some ideas, without me having to import it to a word processor.</description>
    <pubDate>Mon, 28 Jan 2002 14:33:58 GMT</pubDate>
    <dc:creator>Jeffrey Davis_1</dc:creator>
    <dc:date>2002-01-28T14:33:58Z</dc:date>
    <item>
      <title>(Think tank) Scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/think-tank-scripting-question/m-p/2646666#M45010</link>
      <description>I have some scripts that gather and print information from systems.  I would like to print the report 'landscape' on the printer and possibly even bold/italicize certain info from the report.  Any ideas on how I would get this to work without having to make changes to the printer itself.  I'm sure this can be done, I just can't come accross any information anwhere where I would put these statements in my script.&lt;BR /&gt;Thanks in advance,</description>
      <pubDate>Wed, 16 Jan 2002 19:25:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/think-tank-scripting-question/m-p/2646666#M45010</guid>
      <dc:creator>Jeffrey Davis_1</dc:creator>
      <dc:date>2002-01-16T19:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: (Think tank) Scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/think-tank-scripting-question/m-p/2646667#M45011</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can use thiese options in lp command&lt;BR /&gt;with o option&lt;BR /&gt;&lt;BR /&gt;-oi for italic&lt;BR /&gt;-olandscape for landscape &lt;BR /&gt;-oweight3 for bold&lt;BR /&gt;&lt;BR /&gt;for exapmple &lt;BR /&gt;&lt;BR /&gt;lp -d&lt;PRINTER name=""&gt; -oi olandscape filename ..&lt;BR /&gt;&lt;BR /&gt;-USA..&lt;/PRINTER&gt;</description>
      <pubDate>Wed, 16 Jan 2002 19:39:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/think-tank-scripting-question/m-p/2646667#M45011</guid>
      <dc:creator>Uday_S_Ankolekar</dc:creator>
      <dc:date>2002-01-16T19:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: (Think tank) Scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/think-tank-scripting-question/m-p/2646668#M45012</link>
      <description>I recommend using enscript. You can get the depot from this url:&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Gnu/enscript-1.6.1/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Gnu/enscript-1.6.1/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;To print 2 pages on 1 page and in landscape,&lt;BR /&gt;enscript -r -2 -P &lt;PRINTER_NAME&gt; &lt;FILE_NAME&gt;&lt;/FILE_NAME&gt;&lt;/PRINTER_NAME&gt;</description>
      <pubDate>Wed, 16 Jan 2002 19:51:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/think-tank-scripting-question/m-p/2646668#M45012</guid>
      <dc:creator>Wilfred Chau_1</dc:creator>
      <dc:date>2002-01-16T19:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: (Think tank) Scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/think-tank-scripting-question/m-p/2646669#M45013</link>
      <description>Hi all,  either this can't be done or I have stumped all of you.  &lt;BR /&gt;I can print landscape fine.  &lt;BR /&gt;I don't want to print the whole report in bold, just certain header parts inside the report.&lt;BR /&gt;I can't think of any way to accomplish this.&lt;BR /&gt;Maybe someone else has some ideas, without me having to import it to a word processor.</description>
      <pubDate>Mon, 28 Jan 2002 14:33:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/think-tank-scripting-question/m-p/2646669#M45013</guid>
      <dc:creator>Jeffrey Davis_1</dc:creator>
      <dc:date>2002-01-28T14:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: (Think tank) Scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/think-tank-scripting-question/m-p/2646670#M45014</link>
      <description>Hi Jeffrey,&lt;BR /&gt;&lt;BR /&gt;I use the following functions within a script to underline or make bold certain characters:&lt;BR /&gt;&lt;BR /&gt;function underline&lt;BR /&gt;{&lt;BR /&gt;echo $*|awk '{ for (i=1;i&amp;lt;=length($0);i++)&lt;BR /&gt;{ printf ("_\b%s",substr($0,i,1)) }&lt;BR /&gt;}'&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;function make_bold&lt;BR /&gt;{&lt;BR /&gt;echo $*|awk '{ for (i=1;i&amp;lt;=length($0);i++)&lt;BR /&gt;{ printf ("%s\b%s\b%s\b%s",substr($0,i,1),substr($0,i,1),substr($0,i,1),substr($0,i,1)) }&lt;BR /&gt;}'&lt;BR /&gt;&lt;BR /&gt;so to use it, I'd have something like:&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;/etc/lvdisplay $I | grep -q -i stale&lt;BR /&gt;        if [ $? -eq 0 ] ; then&lt;BR /&gt;                echo `make_bold Warning` - LV $I has stale extents&lt;BR /&gt;        fi&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;in my script, the output would get sent to the printer with "Warning" in bold, the rest normal.&lt;BR /&gt;&lt;BR /&gt;Not sure about italic, I'd have to do some digging.&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin.</description>
      <pubDate>Mon, 28 Jan 2002 14:41:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/think-tank-scripting-question/m-p/2646670#M45014</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2002-01-28T14:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: (Think tank) Scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/think-tank-scripting-question/m-p/2646671#M45015</link>
      <description>Hi Jeffrey:&lt;BR /&gt;&lt;BR /&gt;This is a little tricky. The simple answer is that you need to include the escape sequences in the data stream. The tricky part is that the escape sequeneces differ from printer model to printer model/manufacturer. &lt;BR /&gt;&lt;BR /&gt;There are several commercial products that will do what you want. One is called UnForm. &lt;A href="http://www.unform.com." target="_blank"&gt;http://www.unform.com.&lt;/A&gt; You can also search the&lt;BR /&gt;HP-UX Porting Centre for text processing. Another method would be to embed commands like [Italics]&lt;BR /&gt;[Italics Off]&lt;BR /&gt;[Bold]&lt;BR /&gt;[Bold Off]&lt;BR /&gt;within your text data stream and then write a post-processor in awk or perl to substitute the appropriate escape sequences in the output stream. My weapon of choice would be UnForm but I've already bought it.&lt;BR /&gt;&lt;BR /&gt;Regards, Clay&lt;BR /&gt;</description>
      <pubDate>Mon, 28 Jan 2002 14:48:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/think-tank-scripting-question/m-p/2646671#M45015</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-01-28T14:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: (Think tank) Scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/think-tank-scripting-question/m-p/2646672#M45016</link>
      <description>Hi all, Can you tell me what the URL is for the porting centre.  Can't seem to get it right.&lt;BR /&gt;Thanks,</description>
      <pubDate>Fri, 01 Feb 2002 19:39:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/think-tank-scripting-question/m-p/2646672#M45016</guid>
      <dc:creator>Jeffrey Davis_1</dc:creator>
      <dc:date>2002-02-01T19:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: (Think tank) Scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/think-tank-scripting-question/m-p/2646673#M45017</link>
      <description>One porting center is at:&lt;BR /&gt;&lt;A href="http://hpux.cs.utah.edu/" target="_blank"&gt;http://hpux.cs.utah.edu/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Fri, 01 Feb 2002 19:42:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/think-tank-scripting-question/m-p/2646673#M45017</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2002-02-01T19:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: (Think tank) Scripting question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/think-tank-scripting-question/m-p/2646674#M45018</link>
      <description>&lt;A href="http://gatekeep.cs.utah.edu/hppd/hpux/" target="_blank"&gt;http://gatekeep.cs.utah.edu/hppd/hpux/&lt;/A&gt;</description>
      <pubDate>Fri, 01 Feb 2002 19:42:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/think-tank-scripting-question/m-p/2646674#M45018</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-02-01T19:42:57Z</dc:date>
    </item>
  </channel>
</rss>

