<?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: STDOUT and STDERR redirection within a script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/stdout-and-stderr-redirection-within-a-script/m-p/4711195#M659883</link>
    <description>Hi Patrick:&lt;BR /&gt;&lt;BR /&gt;You want:&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;done 2&amp;gt; /dev/null | tee ${LOGFILE} &lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 09 Nov 2010 17:44:15 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2010-11-09T17:44:15Z</dc:date>
    <item>
      <title>STDOUT and STDERR redirection within a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stdout-and-stderr-redirection-within-a-script/m-p/4711194#M659882</link>
      <description>&lt;!--!*#--&gt;Hello all,&lt;BR /&gt;&lt;BR /&gt;I have a for loop executing in a script that I want to redirect STDOUT to screen and to file, while directing STDERR to the bit bucket.  Here is the general sentax of what I'm doing:&lt;BR /&gt;&lt;BR /&gt;for i in thingy&lt;BR /&gt;  do&lt;BR /&gt;    some_command ${i}&lt;BR /&gt;done 1&amp;gt;&amp;amp;1 | tee ${LOGFILE} 2&amp;gt; /dev/null&lt;BR /&gt;&lt;BR /&gt;What I am finding is that STDOUT is going to the logfile and to screen, while STDERR is still going to the screen only.  How do I totally get rid of STDERR?  I don't want it going to screen or file.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!</description>
      <pubDate>Tue, 09 Nov 2010 17:34:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stdout-and-stderr-redirection-within-a-script/m-p/4711194#M659882</guid>
      <dc:creator>Patrick Ware_1</dc:creator>
      <dc:date>2010-11-09T17:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: STDOUT and STDERR redirection within a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stdout-and-stderr-redirection-within-a-script/m-p/4711195#M659883</link>
      <description>Hi Patrick:&lt;BR /&gt;&lt;BR /&gt;You want:&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;done 2&amp;gt; /dev/null | tee ${LOGFILE} &lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Nov 2010 17:44:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stdout-and-stderr-redirection-within-a-script/m-p/4711195#M659883</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-11-09T17:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: STDOUT and STDERR redirection within a script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/stdout-and-stderr-redirection-within-a-script/m-p/4711196#M659884</link>
      <description>That worked perfectly.  Thank you.</description>
      <pubDate>Tue, 09 Nov 2010 17:46:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/stdout-and-stderr-redirection-within-a-script/m-p/4711196#M659884</guid>
      <dc:creator>Patrick Ware_1</dc:creator>
      <dc:date>2010-11-09T17:46:04Z</dc:date>
    </item>
  </channel>
</rss>

