<?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: How to copy stdin to stdout within a ksh script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-copy-stdin-to-stdout-within-a-ksh-script/m-p/4882752#M704271</link>
    <description>Thanks for the solution Rod.&lt;BR /&gt;&lt;BR /&gt;It worked a treat.&lt;BR /&gt;&lt;BR /&gt;..and yes, the braces were needed!&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Gary</description>
    <pubDate>Fri, 28 Jan 2005 10:58:05 GMT</pubDate>
    <dc:creator>Gary Cooper_1</dc:creator>
    <dc:date>2005-01-28T10:58:05Z</dc:date>
    <item>
      <title>How to copy stdin to stdout within a ksh script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-copy-stdin-to-stdout-within-a-ksh-script/m-p/4882745#M704264</link>
      <description>I'm pulling my hair out (what little is left). I just can't work out how to do this, although I'm sure it's really simple.&lt;BR /&gt;&lt;BR /&gt;Starting with:&lt;BR /&gt;&amp;gt; progA | progB&lt;BR /&gt;&lt;BR /&gt;What I want to do is run a script which will do some analysis on the output of progA, but will also pass progA's output to progB unaltered, so that my command look like:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; progA | myprog | progB&lt;BR /&gt;&lt;BR /&gt;BTW, the output of progA is not in a text format.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Gary</description>
      <pubDate>Fri, 28 Jan 2005 08:54:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-copy-stdin-to-stdout-within-a-ksh-script/m-p/4882745#M704264</guid>
      <dc:creator>Gary Cooper_1</dc:creator>
      <dc:date>2005-01-28T08:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to copy stdin to stdout within a ksh script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-copy-stdin-to-stdout-within-a-ksh-script/m-p/4882746#M704265</link>
      <description>hi,&lt;BR /&gt; &lt;BR /&gt;maybe "tee" can help you.&lt;BR /&gt; &lt;BR /&gt;progA | tee -a myfile | progB&lt;BR /&gt;cat myfile | myprog&lt;BR /&gt; &lt;BR /&gt;regards,&lt;BR /&gt;Thierry.</description>
      <pubDate>Fri, 28 Jan 2005 09:04:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-copy-stdin-to-stdout-within-a-ksh-script/m-p/4882746#M704265</guid>
      <dc:creator>Thierry Poels_1</dc:creator>
      <dc:date>2005-01-28T09:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to copy stdin to stdout within a ksh script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-copy-stdin-to-stdout-within-a-ksh-script/m-p/4882747#M704266</link>
      <description>maybe even beter  (preserves the processing sequence):&lt;BR /&gt; &lt;BR /&gt;progA &amp;gt; myfile&lt;BR /&gt;cat myfile | myprog&lt;BR /&gt;cat myfile | progB&lt;BR /&gt; &lt;BR /&gt;regards,&lt;BR /&gt;Thierry.</description>
      <pubDate>Fri, 28 Jan 2005 09:07:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-copy-stdin-to-stdout-within-a-ksh-script/m-p/4882747#M704266</guid>
      <dc:creator>Thierry Poels_1</dc:creator>
      <dc:date>2005-01-28T09:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to copy stdin to stdout within a ksh script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-copy-stdin-to-stdout-within-a-ksh-script/m-p/4882748#M704267</link>
      <description>Hi Thierry,&lt;BR /&gt;&lt;BR /&gt;OK, let me go into a bit more detail...&lt;BR /&gt;&lt;BR /&gt;I have an application which has a configuration file and in that configuration file, there is a variable called printCommand. Print command is currently:&lt;BR /&gt;&lt;BR /&gt;xpr -device dj1200 | lp -oraw -dlp4650c1&lt;BR /&gt;&lt;BR /&gt;When a print is kicked off within the application it prints a dump of the window by executing:&lt;BR /&gt;&lt;BR /&gt;xwd | xpr -device dj1200 | lp -oraw -dlp4650c1&lt;BR /&gt;&lt;BR /&gt;I.e. all I have to work with is the output from xwd and the ability to modify printCommand.&lt;BR /&gt;&lt;BR /&gt;Now, for one class of users, the print fails and by inserting 'tee's I've found out that it's xpr where it's going wrong.&lt;BR /&gt;&lt;BR /&gt;What I want to do is something along the lines of:&lt;BR /&gt;&lt;BR /&gt;xwd | dump_environment_variables | xpr -device dj1200 | lp -oraw -dlp4650c1&lt;BR /&gt;&lt;BR /&gt;for both sets of users so that I can see what's different in their environments.&lt;BR /&gt;&lt;BR /&gt;I hope that clarifies my problem.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Gary</description>
      <pubDate>Fri, 28 Jan 2005 09:58:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-copy-stdin-to-stdout-within-a-ksh-script/m-p/4882748#M704267</guid>
      <dc:creator>Gary Cooper_1</dc:creator>
      <dc:date>2005-01-28T09:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to copy stdin to stdout within a ksh script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-copy-stdin-to-stdout-within-a-ksh-script/m-p/4882749#M704268</link>
      <description>How about-&lt;BR /&gt; &lt;BR /&gt;xwd | ( dump_env.sh  ; xpr ...)&lt;BR /&gt; &lt;BR /&gt;If you use semicolon, dump_env.sh will run and as long as you don't use STDIN and STDOUT, then xpr can pick up the output from xwd.&lt;BR /&gt; &lt;BR /&gt;HTH&lt;BR /&gt; &lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Fri, 28 Jan 2005 10:19:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-copy-stdin-to-stdout-within-a-ksh-script/m-p/4882749#M704268</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2005-01-28T10:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to copy stdin to stdout within a ksh script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-copy-stdin-to-stdout-within-a-ksh-script/m-p/4882750#M704269</link>
      <description>Thanks for the response Rodney,&lt;BR /&gt;&lt;BR /&gt;Can you explain how the round brackets figure in your example?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Gary</description>
      <pubDate>Fri, 28 Jan 2005 10:22:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-copy-stdin-to-stdout-within-a-ksh-script/m-p/4882750#M704269</guid>
      <dc:creator>Gary Cooper_1</dc:creator>
      <dc:date>2005-01-28T10:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to copy stdin to stdout within a ksh script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-copy-stdin-to-stdout-within-a-ksh-script/m-p/4882751#M704270</link>
      <description>I wasn't sure if the () were needed. They group the set of commands in a seperate environment. I wanted to be sure that STDIN from the previous pipe got assigned to both commands in the parenthesis. They may not be needed. Try it both ways.&lt;BR /&gt; &lt;BR /&gt;--Rod Hills</description>
      <pubDate>Fri, 28 Jan 2005 10:50:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-copy-stdin-to-stdout-within-a-ksh-script/m-p/4882751#M704270</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2005-01-28T10:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to copy stdin to stdout within a ksh script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-copy-stdin-to-stdout-within-a-ksh-script/m-p/4882752#M704271</link>
      <description>Thanks for the solution Rod.&lt;BR /&gt;&lt;BR /&gt;It worked a treat.&lt;BR /&gt;&lt;BR /&gt;..and yes, the braces were needed!&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Gary</description>
      <pubDate>Fri, 28 Jan 2005 10:58:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-copy-stdin-to-stdout-within-a-ksh-script/m-p/4882752#M704271</guid>
      <dc:creator>Gary Cooper_1</dc:creator>
      <dc:date>2005-01-28T10:58:05Z</dc:date>
    </item>
  </channel>
</rss>

