<?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: Keeping errors in a error file in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/keeping-errors-in-a-error-file/m-p/4589495#M374776</link>
    <description>thannk you so much &lt;BR /&gt;you had reason&lt;BR /&gt;i had 2&amp;gt;/dev/null into the script&lt;BR /&gt;i delete that and worked!!!&lt;BR /&gt;&lt;BR /&gt;thank you so muchhhh</description>
    <pubDate>Thu, 25 Feb 2010 02:12:31 GMT</pubDate>
    <dc:creator>Manuales</dc:creator>
    <dc:date>2010-02-25T02:12:31Z</dc:date>
    <item>
      <title>Keeping errors in a error file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/keeping-errors-in-a-error-file/m-p/4589486#M374767</link>
      <description>when i run a script i am getting some errors&lt;BR /&gt;&lt;BR /&gt;$ prueba &lt;BR /&gt;find: cannot stat /prodftp&lt;BR /&gt;find: cannot stat /rutaprueba&lt;BR /&gt;&lt;BR /&gt;i want to keep these errors in a file called errors.txt, but they are not being kept  :(  as follows:&lt;BR /&gt;$ prueba 2&amp;gt;&amp;gt;/home/errors.txt&lt;BR /&gt;&lt;BR /&gt;cat /home/errors.txt&lt;BR /&gt;"nothing, i thought i would see find: cannot..."&lt;BR /&gt;&lt;BR /&gt;what do i have to do?</description>
      <pubDate>Tue, 23 Feb 2010 19:04:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/keeping-errors-in-a-error-file/m-p/4589486#M374767</guid>
      <dc:creator>Manuales</dc:creator>
      <dc:date>2010-02-23T19:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping errors in a error file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/keeping-errors-in-a-error-file/m-p/4589487#M374768</link>
      <description>have you tried&lt;BR /&gt;&lt;BR /&gt;$ prueb 1&amp;gt;/home/errors.txt 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Tue, 23 Feb 2010 19:19:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/keeping-errors-in-a-error-file/m-p/4589487#M374768</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2010-02-23T19:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping errors in a error file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/keeping-errors-in-a-error-file/m-p/4589488#M374769</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Redirect standard error.&lt;BR /&gt;&lt;BR /&gt;2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;Try:&lt;BR /&gt;&lt;BR /&gt;2&amp;gt;filename&lt;BR /&gt;&lt;BR /&gt;Play around a bit on the command line.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 23 Feb 2010 20:02:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/keeping-errors-in-a-error-file/m-p/4589488#M374769</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2010-02-23T20:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping errors in a error file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/keeping-errors-in-a-error-file/m-p/4589489#M374770</link>
      <description>Hello,&lt;BR /&gt;it depend if the message you see online is written by the command (i presume find) on stdout or on stderr. type man command to understand this.&lt;BR /&gt;Best way is to redirect stdout and stderr in one file:&lt;BR /&gt;prueba 1&amp;gt;/home/errors.txt 2&amp;gt;&amp;amp;1&lt;BR /&gt;in this way all messages will be in the file.&lt;BR /&gt;HTH,&lt;BR /&gt;Art</description>
      <pubDate>Wed, 24 Feb 2010 08:41:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/keeping-errors-in-a-error-file/m-p/4589489#M374770</guid>
      <dc:creator>Arturo Galbiati</dc:creator>
      <dc:date>2010-02-24T08:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping errors in a error file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/keeping-errors-in-a-error-file/m-p/4589490#M374771</link>
      <description>Hi, ...&lt;BR /&gt;i have a problem...&lt;BR /&gt;&lt;BR /&gt;if i run this, it works:&lt;BR /&gt;prueba 1&amp;gt;/home/errors.txt 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;but if i run the shell waiting a parameter it is not working  :(&lt;BR /&gt;prueba value1 1&amp;gt;/home/errors.txt 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;please let me know how i can fix it&lt;BR /&gt;thanks.</description>
      <pubDate>Wed, 24 Feb 2010 16:14:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/keeping-errors-in-a-error-file/m-p/4589490#M374771</guid>
      <dc:creator>Manuales</dc:creator>
      <dc:date>2010-02-24T16:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping errors in a error file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/keeping-errors-in-a-error-file/m-p/4589491#M374772</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; but if i run the shell waiting a parameter it is not working :(&lt;BR /&gt;&lt;BR /&gt;This suggests that your script has already re-directed STDERR (perhaps to the bit-bucket).&lt;BR /&gt;&lt;BR /&gt;Look at your script for a line like:&lt;BR /&gt;&lt;BR /&gt;# exec 2&amp;gt; /dev/null&lt;BR /&gt;&lt;BR /&gt;If that exists, then that is why you see the behavior that you do.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 24 Feb 2010 16:23:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/keeping-errors-in-a-error-file/m-p/4589491#M374772</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-02-24T16:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping errors in a error file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/keeping-errors-in-a-error-file/m-p/4589492#M374773</link>
      <description>I think that 2&amp;gt;/dev/null is not the issue ...&lt;BR /&gt;&lt;BR /&gt;the issue is when i add $1 = /home/user1/ is causing the issue ...&lt;BR /&gt;&lt;BR /&gt;prueba /home/user1/ 1&amp;gt;/home/user1/errors.txt 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;i donot understand why ????</description>
      <pubDate>Wed, 24 Feb 2010 16:47:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/keeping-errors-in-a-error-file/m-p/4589492#M374773</guid>
      <dc:creator>Manuales</dc:creator>
      <dc:date>2010-02-24T16:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping errors in a error file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/keeping-errors-in-a-error-file/m-p/4589493#M374774</link>
      <description>Can you post the 'prueba' script?  The ability to analyze the script may help us to diagnose your problem.&lt;BR /&gt;&lt;BR /&gt;Just the act of adding a parameter to a command should not effect redirection of stderr and stdout.</description>
      <pubDate>Wed, 24 Feb 2010 16:59:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/keeping-errors-in-a-error-file/m-p/4589493#M374774</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2010-02-24T16:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping errors in a error file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/keeping-errors-in-a-error-file/m-p/4589494#M374775</link>
      <description>Shalom again,&lt;BR /&gt;&lt;BR /&gt;The original issue was that you were trying to append output to a file that was not created. &amp;gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;If you start a script process and redirect the output to a file as shown in my first post, all output will go to the file you are choosing.&lt;BR /&gt;&lt;BR /&gt;You want error output only to a file. That goal has been achieved.&lt;BR /&gt;&lt;BR /&gt;Your last question expanded the question. You need to step back and get a basic understanding for how input/output works in Unix.&lt;BR /&gt;&lt;BR /&gt;This link might help with that:&lt;BR /&gt;&lt;A href="http://www.codecoffee.com/tipsforlinux/articles2/042.html" target="_blank"&gt;http://www.codecoffee.com/tipsforlinux/articles2/042.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 24 Feb 2010 17:01:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/keeping-errors-in-a-error-file/m-p/4589494#M374775</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2010-02-24T17:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Keeping errors in a error file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/keeping-errors-in-a-error-file/m-p/4589495#M374776</link>
      <description>thannk you so much &lt;BR /&gt;you had reason&lt;BR /&gt;i had 2&amp;gt;/dev/null into the script&lt;BR /&gt;i delete that and worked!!!&lt;BR /&gt;&lt;BR /&gt;thank you so muchhhh</description>
      <pubDate>Thu, 25 Feb 2010 02:12:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/keeping-errors-in-a-error-file/m-p/4589495#M374776</guid>
      <dc:creator>Manuales</dc:creator>
      <dc:date>2010-02-25T02:12:31Z</dc:date>
    </item>
  </channel>
</rss>

