<?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: show column in script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/show-column-in-script/m-p/4108692#M312899</link>
    <description>Can you change your application? Do you have the source and know how to build it?&lt;BR /&gt;&lt;BR /&gt;--&amp;gt; this is third party program , we don't have source code .&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I.e. you don't like how it works, can you change it so you can get all those 1500 lines?&lt;BR /&gt;&lt;BR /&gt;--&amp;gt; I can get all those 1500 lines but the application need to press "enter" key when I want go to next page ( 1500 lines have many pages  )  , so I want to ask how to add the enter to my program , just like some unix key ^M  etc. &lt;BR /&gt;&lt;BR /&gt;Thx</description>
    <pubDate>Thu, 29 Nov 2007 02:12:08 GMT</pubDate>
    <dc:creator>ust3</dc:creator>
    <dc:date>2007-11-29T02:12:08Z</dc:date>
    <item>
      <title>show column in script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/show-column-in-script/m-p/4108684#M312891</link>
      <description>I have a applicaton , when run /tmp/my_script , that will output the result to the screen ( as below ) ,  the output is very long ( about 1500 lines ) , I have a program ( as below ) that will show the output with function 1 &amp;gt; 1 , it works fine , however , the output only show page 1 of this 1500 lines ( round 60 lines output is shown ) , can advise what is wrong , how to output all 1500 lines ?  besides , if I want the output only have fisrt two column ( date &amp;amp; time in my case ) , the number column do not show ,  can advise how to change my program ?  thx in advance.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;the result&lt;BR /&gt;======&lt;BR /&gt;04/15/07  01:00:00  1 8 7 8 5 8 4 5 5 7&lt;BR /&gt;04/15/07  02:00:00  1 2 58 7 5 6 4 1 8&lt;BR /&gt;"&lt;BR /&gt;"&lt;BR /&gt;"&lt;BR /&gt;(total 1500 lines )&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;My program &lt;BR /&gt;=======&lt;BR /&gt;#vi /tmp/my_program &lt;BR /&gt;#/bin/ksh&lt;BR /&gt;/tmp/my_script  &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;sleep 1&lt;BR /&gt;sleep&lt;BR /&gt;1&lt;BR /&gt;EOF</description>
      <pubDate>Wed, 28 Nov 2007 02:39:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/show-column-in-script/m-p/4108684#M312891</guid>
      <dc:creator>ust3</dc:creator>
      <dc:date>2007-11-28T02:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: show column in script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/show-column-in-script/m-p/4108685#M312892</link>
      <description>if you want to show the first two columns just add awk {'print $1, $2'} filename in your script.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Nov 2007 03:03:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/show-column-in-script/m-p/4108685#M312892</guid>
      <dc:creator>Lexxx</dc:creator>
      <dc:date>2007-11-28T03:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: show column in script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/show-column-in-script/m-p/4108686#M312893</link>
      <description>thx reply ,&lt;BR /&gt;&lt;BR /&gt;for my first question , why it only show the page 1 , it is because it is wait to press "enter" key to next page , can advise if I want to add the "enter" command to my program , what can i do ? thx&lt;BR /&gt;&lt;BR /&gt;#vi /tmp/my_program &lt;BR /&gt;#/bin/ksh&lt;BR /&gt;/tmp/my_script &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;sleep 1&lt;BR /&gt;1&lt;BR /&gt;"enter"&lt;BR /&gt;"enter"&lt;BR /&gt;sleep 1&lt;BR /&gt;1&lt;BR /&gt;EOF</description>
      <pubDate>Wed, 28 Nov 2007 04:04:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/show-column-in-script/m-p/4108686#M312893</guid>
      <dc:creator>ust3</dc:creator>
      <dc:date>2007-11-28T04:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: show column in script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/show-column-in-script/m-p/4108687#M312894</link>
      <description>It appears you have an interactive program that expects a user to select which page or how many?&lt;BR /&gt;&lt;BR /&gt;Ideally, your program should just dump 1500 lines and let the caller pipe it through more if he wants paging or though awk if he wants to select columns.&lt;BR /&gt;&lt;BR /&gt;But with your "sleep" inputs, it seems you want it to wait before some output?&lt;BR /&gt;&lt;BR /&gt;If you don't want it to stop after a page, it seems the best thing to do to your application is to pass a flag (or set and env var), to say you don't want paging.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;it is because it is wait to press "enter" key to next page, can advise if I want to add the "enter" command to my program, what can i do?&lt;BR /&gt;&lt;BR /&gt;I assume you just have ~1500/60 blanks lines to simulate the ENTER key.</description>
      <pubDate>Wed, 28 Nov 2007 04:14:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/show-column-in-script/m-p/4108687#M312894</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-11-28T04:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: show column in script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/show-column-in-script/m-p/4108688#M312895</link>
      <description>thx reply&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;But with your "sleep" inputs, it seems you want it to wait before some output? &amp;lt;&amp;lt; - no, I set "sleep" only want it run more smoothly ( i guess it is the case ) , please ignore it.&lt;BR /&gt;&lt;BR /&gt;If you don't want it to stop after a page, it seems the best thing to do to your application is to pass a flag (or set and env var), to say you don't want paging --&amp;gt; please advise how to set this env ? &lt;BR /&gt;&lt;BR /&gt;thx</description>
      <pubDate>Wed, 28 Nov 2007 04:28:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/show-column-in-script/m-p/4108688#M312895</guid>
      <dc:creator>ust3</dc:creator>
      <dc:date>2007-11-28T04:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: show column in script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/show-column-in-script/m-p/4108689#M312896</link>
      <description>&amp;gt;please advise how to set this env?&lt;BR /&gt;&lt;BR /&gt;My suggestion was to change your application to detect a new command line option and do things differently.  Or call getenv(3) to detect you don't want to do paging.</description>
      <pubDate>Wed, 28 Nov 2007 05:10:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/show-column-in-script/m-p/4108689#M312896</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-11-28T05:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: show column in script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/show-column-in-script/m-p/4108690#M312897</link>
      <description>thx reply,&lt;BR /&gt;&lt;BR /&gt;My suggestion was to change your application to detect a new command line option and do things differently. Or call getenv(3) to detect you don't want to do paging. --&amp;gt; &lt;BR /&gt;&lt;BR /&gt;sorry , I am not too understand , can you please advise what I need to do ? thx</description>
      <pubDate>Wed, 28 Nov 2007 23:12:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/show-column-in-script/m-p/4108690#M312897</guid>
      <dc:creator>ust3</dc:creator>
      <dc:date>2007-11-28T23:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: show column in script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/show-column-in-script/m-p/4108691#M312898</link>
      <description>&amp;gt;can you please advise what I need to do?&lt;BR /&gt;&lt;BR /&gt;Can you change your application?  Do you have the source and know how to build it?&lt;BR /&gt;&lt;BR /&gt;I.e. you don't like how it works, can you change it so you can get all those 1500 lines?</description>
      <pubDate>Wed, 28 Nov 2007 23:23:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/show-column-in-script/m-p/4108691#M312898</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-11-28T23:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: show column in script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/show-column-in-script/m-p/4108692#M312899</link>
      <description>Can you change your application? Do you have the source and know how to build it?&lt;BR /&gt;&lt;BR /&gt;--&amp;gt; this is third party program , we don't have source code .&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I.e. you don't like how it works, can you change it so you can get all those 1500 lines?&lt;BR /&gt;&lt;BR /&gt;--&amp;gt; I can get all those 1500 lines but the application need to press "enter" key when I want go to next page ( 1500 lines have many pages  )  , so I want to ask how to add the enter to my program , just like some unix key ^M  etc. &lt;BR /&gt;&lt;BR /&gt;Thx</description>
      <pubDate>Thu, 29 Nov 2007 02:12:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/show-column-in-script/m-p/4108692#M312899</guid>
      <dc:creator>ust3</dc:creator>
      <dc:date>2007-11-29T02:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: show column in script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/show-column-in-script/m-p/4108693#M312900</link>
      <description>&amp;gt;this is third party program, we don't have source code.&lt;BR /&gt;&lt;BR /&gt;So my suggestion isn't applicable.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;so I want to ask how to add the enter to my program, just like some unix key ^M etc.&lt;BR /&gt;&lt;BR /&gt;Basically having blank lines in your here document will act the same as an enter key.&lt;BR /&gt;In the places above where you had "enter".</description>
      <pubDate>Thu, 29 Nov 2007 16:20:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/show-column-in-script/m-p/4108693#M312900</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-11-29T16:20:22Z</dc:date>
    </item>
  </channel>
</rss>

