<?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 Redirect out put to ? in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/redirect-out-put-to/m-p/5015635#M92785</link>
    <description>Good Morning, &lt;BR /&gt;&lt;BR /&gt;Just a dozen or so more questions! &lt;BR /&gt;&lt;BR /&gt;How would I redirect this out put to null?&lt;BR /&gt;&lt;BR /&gt;# ./demo_finish_recovery.sh &lt;BR /&gt;mv: /fpc/archivelog: rename: Device busy&lt;BR /&gt;mv: /fpc/data: rename: Device busy</description>
    <pubDate>Fri, 24 Nov 2006 08:11:18 GMT</pubDate>
    <dc:creator>P-Dicky</dc:creator>
    <dc:date>2006-11-24T08:11:18Z</dc:date>
    <item>
      <title>Redirect out put to ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/redirect-out-put-to/m-p/5015635#M92785</link>
      <description>Good Morning, &lt;BR /&gt;&lt;BR /&gt;Just a dozen or so more questions! &lt;BR /&gt;&lt;BR /&gt;How would I redirect this out put to null?&lt;BR /&gt;&lt;BR /&gt;# ./demo_finish_recovery.sh &lt;BR /&gt;mv: /fpc/archivelog: rename: Device busy&lt;BR /&gt;mv: /fpc/data: rename: Device busy</description>
      <pubDate>Fri, 24 Nov 2006 08:11:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/redirect-out-put-to/m-p/5015635#M92785</guid>
      <dc:creator>P-Dicky</dc:creator>
      <dc:date>2006-11-24T08:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Redirect out put to ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/redirect-out-put-to/m-p/5015636#M92786</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;# ./demo_finish_recovery.sh &amp;gt;/dev/null 2&amp;gt;&amp;amp;1</description>
      <pubDate>Fri, 24 Nov 2006 08:20:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/redirect-out-put-to/m-p/5015636#M92786</guid>
      <dc:creator>Coolmar</dc:creator>
      <dc:date>2006-11-24T08:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Redirect out put to ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/redirect-out-put-to/m-p/5015637#M92787</link>
      <description>Thi will redirect all to null:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; /dev/null &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This only errors : &lt;BR /&gt;2&amp;gt; /dev/null &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;ivan&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Nov 2006 08:21:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/redirect-out-put-to/m-p/5015637#M92787</guid>
      <dc:creator>Ivan Krastev</dc:creator>
      <dc:date>2006-11-24T08:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Redirect out put to ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/redirect-out-put-to/m-p/5015638#M92788</link>
      <description>Text from a script can be issued to two different devices, stdout and stderr. For an interactive run (ie, started from a terminal), stdout and stderr both go to the screen. Normally, error messages such as the "Device busy" mentioned above are sent to stderr and can be suppressed by redirecting stderr to /dev/null. &lt;BR /&gt; &lt;BR /&gt;The std files all have the same numbering convention: 1=stdin 2=stdout 3=stderr, so to get rid of just the error messages, use 2&amp;gt;/dev/null where 2=stderr, &amp;gt; menas to redirect and /dev/null is the bit-bucket.  If you want normal as well as error messages to be redirected, you can do it two ways:&lt;BR /&gt; &lt;BR /&gt;./demo_finish_recovery.sh 1&amp;gt;/dev/null 2&amp;gt;/dev/null&lt;BR /&gt;./demo_finish_recovery.sh 1&amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt; &lt;BR /&gt;The first form is straightforward, but the second has a shorthand: 2&amp;gt;&amp;amp;1 which means redirect file #2 into file #1 (which has been already redirected to /dev/null). The redirection must be in the order shown. Note that 1&amp;gt;/dev/null and &amp;gt;/dev/null are equivalent.</description>
      <pubDate>Sun, 26 Nov 2006 14:41:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/redirect-out-put-to/m-p/5015638#M92788</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-11-26T14:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: Redirect out put to ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/redirect-out-put-to/m-p/5015639#M92789</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;The numbering of the standard file descriptors opened by every standard Unix program are 'stdin' = 0, 'stdout' = 1 and 'stderr' = 2, respectively.&lt;BR /&gt;&lt;BR /&gt;While Bill's examples are correct, he inadvertantly counted from one in associating their names with numbers.&lt;BR /&gt;&lt;BR /&gt;Well-behaved Unix programs use STDERR to report warnings and/or errors leaving STDOUT to the expected output.&lt;BR /&gt;&lt;BR /&gt;When both streams are mixed, STDERR is unbuffered while STDOUT is normally buffered.  The presence of a newline character causes the current STDOUT buffer to be flushed.  This is useful to remember, particularly in cases where you build output lines from several 'printf' statements with only the last one injecting a newline character.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Sun, 26 Nov 2006 18:20:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/redirect-out-put-to/m-p/5015639#M92789</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-11-26T18:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: Redirect out put to ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/redirect-out-put-to/m-p/5015640#M92790</link>
      <description>Thanks James...of course, the standard file numbers are indeed 0 1 2 (I was half-watching Sesame Street on TV at the time...)</description>
      <pubDate>Mon, 27 Nov 2006 18:59:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/redirect-out-put-to/m-p/5015640#M92790</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-11-27T18:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Redirect out put to ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/redirect-out-put-to/m-p/5015641#M92791</link>
      <description>The correct solution is to change the demo_finish_recovery.sh script to redirect stderr on only the mv commands.  Otherwise you may be missing errors on other commands that are important.&lt;BR /&gt;&lt;BR /&gt;Of course while you are there, you may want to capture the error output and do something if mv fails.</description>
      <pubDate>Mon, 27 Nov 2006 19:42:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/redirect-out-put-to/m-p/5015641#M92791</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2006-11-27T19:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Redirect out put to ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/redirect-out-put-to/m-p/5015642#M92792</link>
      <description>Thank you</description>
      <pubDate>Wed, 12 Dec 2007 18:20:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/redirect-out-put-to/m-p/5015642#M92792</guid>
      <dc:creator>P-Dicky</dc:creator>
      <dc:date>2007-12-12T18:20:20Z</dc:date>
    </item>
  </channel>
</rss>

