<?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: shell question (intercept stderr output) in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-question-intercept-stderr-output/m-p/2924477#M110257</link>
    <description>Here is an offbeat idea, probably not the best&lt;BR /&gt;&lt;BR /&gt;In another terminal session, run this.&lt;BR /&gt;&lt;BR /&gt;tail -f msgfile&lt;BR /&gt;&lt;BR /&gt;It will show output as it hits the file.&lt;BR /&gt;&lt;BR /&gt;I am sure there is some slick way to do it on the command line, but my way is simple and it would work unless I'm logged in on a console.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Tue, 11 Mar 2003 18:16:56 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2003-03-11T18:16:56Z</dc:date>
    <item>
      <title>shell question (intercept stderr output)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-question-intercept-stderr-output/m-p/2924475#M110255</link>
      <description>A background process sends messages via stderr to the terminal. How can I duplicate this output to stdout (or elsewhere), so that another process can read the messages, too?&lt;BR /&gt;&lt;BR /&gt;my_prog 2&amp;gt;&amp;amp;1 1&amp;gt;results | tee msgfile 1&amp;gt;&amp;amp;2 |&amp;amp;&lt;BR /&gt;&lt;BR /&gt;with periodic inspection of msgfile works, but is slow. Is there a better way? Thanks in advance for your help.</description>
      <pubDate>Tue, 11 Mar 2003 17:43:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-question-intercept-stderr-output/m-p/2924475#M110255</guid>
      <dc:creator>Ulrich Deiters</dc:creator>
      <dc:date>2003-03-11T17:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: shell question (intercept stderr output)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-question-intercept-stderr-output/m-p/2924476#M110256</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;1. How about:&lt;BR /&gt;mkfifo msgfifo&lt;BR /&gt;and than something like&lt;BR /&gt;my_prog 2&amp;gt;msgfifo&lt;BR /&gt;or more complicated construction with this?&lt;BR /&gt;Disadvantage: 'writes' to fifo are blocked until the reader is attached.&lt;BR /&gt;&lt;BR /&gt;2. tail -f msgfile&lt;BR /&gt;scans every second a file and prints only what was appended after previous scan.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Good luck&lt;BR /&gt;&lt;BR /&gt;Adam&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Mar 2003 18:16:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-question-intercept-stderr-output/m-p/2924476#M110256</guid>
      <dc:creator>Adam J Markiewicz</dc:creator>
      <dc:date>2003-03-11T18:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: shell question (intercept stderr output)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-question-intercept-stderr-output/m-p/2924477#M110257</link>
      <description>Here is an offbeat idea, probably not the best&lt;BR /&gt;&lt;BR /&gt;In another terminal session, run this.&lt;BR /&gt;&lt;BR /&gt;tail -f msgfile&lt;BR /&gt;&lt;BR /&gt;It will show output as it hits the file.&lt;BR /&gt;&lt;BR /&gt;I am sure there is some slick way to do it on the command line, but my way is simple and it would work unless I'm logged in on a console.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 11 Mar 2003 18:16:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-question-intercept-stderr-output/m-p/2924477#M110257</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-03-11T18:16:56Z</dc:date>
    </item>
  </channel>
</rss>

