<?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: Solaris /dev/stdout equivalent for HP-UX? (NOT /dev/tty) in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/solaris-dev-stdout-equivalent-for-hp-ux-not-dev-tty/m-p/4857001#M851597</link>
    <description>Clay,&lt;BR /&gt;&lt;BR /&gt;stdin, stdout, stderr:  I thought they were standard when I created them years ago, but I now know better.  The named pipe trick was exactly what the other admin here had suggested and I do think it will work.  Thanks for the confirmation.&lt;BR /&gt;&lt;BR /&gt;Chris&lt;BR /&gt;</description>
    <pubDate>Thu, 29 Jul 2004 18:14:49 GMT</pubDate>
    <dc:creator>Chris_130</dc:creator>
    <dc:date>2004-07-29T18:14:49Z</dc:date>
    <item>
      <title>Solaris /dev/stdout equivalent for HP-UX? (NOT /dev/tty)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/solaris-dev-stdout-equivalent-for-hp-ux-not-dev-tty/m-p/4856999#M851595</link>
      <description>I am moving an Informix SE database from Solaris to HP.  Many of the SQL scripts use a line like UNLOAD TO /dev/stdout DELIMITER "," to set a useful delimiter to use.  When the SQL scripts are used the output is redirected as desired.  Some scripts are used twice and output to different files for comparison.  Informix SE's dbaccess won't take a variable being passed in like $SYSOUT.  I talked to Informix and another admin here and I have some workarounds, but the key word is WORK; all the scripts would need to be changed.  The absolute best solution would be a /dev/stdout equivalent for HP-UX.  Any ideas?</description>
      <pubDate>Thu, 29 Jul 2004 16:01:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/solaris-dev-stdout-equivalent-for-hp-ux-not-dev-tty/m-p/4856999#M851595</guid>
      <dc:creator>Chris_130</dc:creator>
      <dc:date>2004-07-29T16:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Solaris /dev/stdout equivalent for HP-UX? (NOT /dev/tty)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/solaris-dev-stdout-equivalent-for-hp-ux-not-dev-tty/m-p/4857000#M851596</link>
      <description>HP-UX doesn't have a /dev/stdout and you have probably learned a valuable lesson now. Don't never ever hardcode nothing unless you know it's supported across all possible platforms. &lt;BR /&gt;&lt;BR /&gt;Here's the best I have been able to come up with, a named pipe equivalent:&lt;BR /&gt;&lt;BR /&gt;mkfifo -m 666 /dev/stdout&lt;BR /&gt;&lt;BR /&gt;Now start a process to grab the input of this pipe.&lt;BR /&gt;&lt;BR /&gt;tail -f /dev/stdout &amp;gt; /var/tmp/myfile.tmp &amp;amp;&lt;BR /&gt;&lt;BR /&gt;You should then be able to use /dev/stdout in your scripts.&lt;BR /&gt;&lt;BR /&gt;The downside to this workaround is that unlike a real /dev/stdout device node; all processes which write to /dev/stdout will dump to the same pipe so that outputs from multiple processes might be interleaved.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Jul 2004 17:14:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/solaris-dev-stdout-equivalent-for-hp-ux-not-dev-tty/m-p/4857000#M851596</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-07-29T17:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Solaris /dev/stdout equivalent for HP-UX? (NOT /dev/tty)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/solaris-dev-stdout-equivalent-for-hp-ux-not-dev-tty/m-p/4857001#M851597</link>
      <description>Clay,&lt;BR /&gt;&lt;BR /&gt;stdin, stdout, stderr:  I thought they were standard when I created them years ago, but I now know better.  The named pipe trick was exactly what the other admin here had suggested and I do think it will work.  Thanks for the confirmation.&lt;BR /&gt;&lt;BR /&gt;Chris&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Jul 2004 18:14:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/solaris-dev-stdout-equivalent-for-hp-ux-not-dev-tty/m-p/4857001#M851597</guid>
      <dc:creator>Chris_130</dc:creator>
      <dc:date>2004-07-29T18:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Solaris /dev/stdout equivalent for HP-UX? (NOT /dev/tty)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/solaris-dev-stdout-equivalent-for-hp-ux-not-dev-tty/m-p/4857002#M851598</link>
      <description>Solution by Clay is worked well enough for a quick fix.  I "wrapped" the sql scripts with a perl program to replace /dev/null with the name of a file on execution as a longer term solution.</description>
      <pubDate>Thu, 16 Dec 2004 08:33:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/solaris-dev-stdout-equivalent-for-hp-ux-not-dev-tty/m-p/4857002#M851598</guid>
      <dc:creator>Chris_130</dc:creator>
      <dc:date>2004-12-16T08:33:21Z</dc:date>
    </item>
  </channel>
</rss>

