<?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: null  and/or random devices ? in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/null-and-or-random-devices/m-p/3693204#M21039</link>
    <description>There are 3 predefined streams:&lt;BR /&gt;0 = stdin (standard input)&lt;BR /&gt;1 = stdout (standard output)&lt;BR /&gt;2 = stderr (standard error)&lt;BR /&gt;&lt;BR /&gt;"&amp;gt;" means "stdout" redirection, while "2&amp;gt;" means "stderr" redirection.&lt;BR /&gt;&lt;BR /&gt;"&amp;gt;&amp;amp;" writes the output of one stream into another. Taking Geoff's example:&lt;BR /&gt;... &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;- redirect "stderr" (2) to "stdout" (1)&lt;BR /&gt;- redirect "stdout" to "/dev/null"</description>
    <pubDate>Sun, 18 Dec 2005 10:09:36 GMT</pubDate>
    <dc:creator>Uwe Zessin</dc:creator>
    <dc:date>2005-12-18T10:09:36Z</dc:date>
    <item>
      <title>null  and/or random devices ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/null-and-or-random-devices/m-p/3693199#M21034</link>
      <description>Dear Gurus&lt;BR /&gt;what is null devices ? and its use ? any example plz&lt;BR /&gt;what is random devices ? and its use ? any example plz&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Maaz</description>
      <pubDate>Fri, 16 Dec 2005 14:06:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/null-and-or-random-devices/m-p/3693199#M21034</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2005-12-16T14:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: null  and/or random devices ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/null-and-or-random-devices/m-p/3693200#M21035</link>
      <description>Null devices are normally used to redirect the output of commands. Null devices ignore the data sent to it, like a black hole. It's used when you want to ignore the output of a command, example:&lt;BR /&gt;&lt;BR /&gt;ls -la &amp;gt; ls.out 2&amp;gt; /dev/null&lt;BR /&gt;&lt;BR /&gt;In this example, you redirect the errors to /dev/null, so it's ignored.&lt;BR /&gt;&lt;BR /&gt;Another use is to test the performance of somethig, like this:&lt;BR /&gt;&lt;BR /&gt;dd if=/dev/hda1 of=/dev/null bs=1024 count=10000&lt;BR /&gt;&lt;BR /&gt;This example will read the data from the disk and write to nothing, so, you can get a more accurate estimation of the read rate.&lt;BR /&gt;&lt;BR /&gt;Random devices are normally used by cryptography, like gnupg, to generate random characters. When you create a certificate (make testcert), or a public key pair (ssh -keygen), you are using a random device, normally /dev/random.</description>
      <pubDate>Fri, 16 Dec 2005 15:02:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/null-and-or-random-devices/m-p/3693200#M21035</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2005-12-16T15:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: null  and/or random devices ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/null-and-or-random-devices/m-p/3693201#M21036</link>
      <description>There is only one null - /dev/null&lt;BR /&gt;&lt;BR /&gt;Example - cron:&lt;BR /&gt;&lt;BR /&gt;# Run the disckcheck script&lt;BR /&gt;30 6 1 * * /usr/local/bin/diskcheck &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;That will re-direct STOUT and errors to /dev/null - else it would go to an email...&lt;BR /&gt;&lt;BR /&gt;Another in a script - checking the return signal of a command:&lt;BR /&gt;&lt;BR /&gt;ps -aef | grep -v grep | grep mbtsk &amp;gt; /dev/null&lt;BR /&gt;if [ $? -ne 0 ]&lt;BR /&gt;then&lt;BR /&gt;&lt;BR /&gt;        # No mbtsk, so no Oasis.&lt;BR /&gt;        exit 0&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Dec 2005 15:05:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/null-and-or-random-devices/m-p/3693201#M21036</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2005-12-16T15:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: null  and/or random devices ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/null-and-or-random-devices/m-p/3693202#M21037</link>
      <description>nice help Dear Ivan Ferreira, and Geoff Wild.&lt;BR /&gt;&lt;BR /&gt;Ivan Ferreira u wrote:&lt;BR /&gt;ls -la &amp;gt; ls.out 2&amp;gt; /dev/null&lt;BR /&gt;&lt;BR /&gt;in the example above the output is redirecting to a file "ls.out" and as well as to /dev/null ...  m i right ?&lt;BR /&gt;&lt;BR /&gt;may i ask why u use "2" i.e instead of "...&amp;gt; /dev/null" why u wrote "...2&amp;gt; /dev/null"&lt;BR /&gt;&lt;BR /&gt;and should i have to create /dev/null via mknod command ?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Maaz</description>
      <pubDate>Sat, 17 Dec 2005 14:18:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/null-and-or-random-devices/m-p/3693202#M21037</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2005-12-17T14:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: null  and/or random devices ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/null-and-or-random-devices/m-p/3693203#M21038</link>
      <description>ls -la &amp;gt; ls.out 2&amp;gt; /dev/null&lt;BR /&gt;It means:&lt;BR /&gt;redirect the output to a file named ls.out&lt;BR /&gt;redirect the errors (STDERR) to /dev/null&lt;BR /&gt;&lt;BR /&gt;basically: you don't wish to see errors that might occur during the "operation".</description>
      <pubDate>Sun, 18 Dec 2005 04:39:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/null-and-or-random-devices/m-p/3693203#M21038</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2005-12-18T04:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: null  and/or random devices ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/null-and-or-random-devices/m-p/3693204#M21039</link>
      <description>There are 3 predefined streams:&lt;BR /&gt;0 = stdin (standard input)&lt;BR /&gt;1 = stdout (standard output)&lt;BR /&gt;2 = stderr (standard error)&lt;BR /&gt;&lt;BR /&gt;"&amp;gt;" means "stdout" redirection, while "2&amp;gt;" means "stderr" redirection.&lt;BR /&gt;&lt;BR /&gt;"&amp;gt;&amp;amp;" writes the output of one stream into another. Taking Geoff's example:&lt;BR /&gt;... &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;- redirect "stderr" (2) to "stdout" (1)&lt;BR /&gt;- redirect "stdout" to "/dev/null"</description>
      <pubDate>Sun, 18 Dec 2005 10:09:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/null-and-or-random-devices/m-p/3693204#M21039</guid>
      <dc:creator>Uwe Zessin</dc:creator>
      <dc:date>2005-12-18T10:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: null  and/or random devices ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/null-and-or-random-devices/m-p/3693205#M21040</link>
      <description>Thankx Dear Uwe Zessin and All &lt;BR /&gt;&lt;BR /&gt;Rgrds&lt;BR /&gt;Maaz</description>
      <pubDate>Sun, 18 Dec 2005 13:09:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/null-and-or-random-devices/m-p/3693205#M21040</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2005-12-18T13:09:42Z</dc:date>
    </item>
  </channel>
</rss>

