<?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: Redirecting output in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/redirecting-output/m-p/2949150#M931592</link>
    <description>Shahul,&lt;BR /&gt;&lt;BR /&gt;# ksh -x /home/user1/test.ksh &amp;gt; test.log 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;- ramd.</description>
    <pubDate>Fri, 11 Apr 2003 10:29:59 GMT</pubDate>
    <dc:creator>Ramkumar Devanathan</dc:creator>
    <dc:date>2003-04-11T10:29:59Z</dc:date>
    <item>
      <title>Redirecting output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/redirecting-output/m-p/2949149#M931591</link>
      <description>&lt;BR /&gt;Hi&lt;BR /&gt;&lt;BR /&gt;  I am executing a script with ksh -x and redirecting O/P to a log file. But the commands are not getting redirected to log file, Only O/P is coming to file.&lt;BR /&gt;&lt;BR /&gt;eg &lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;pwd&lt;BR /&gt;date&lt;BR /&gt;&lt;BR /&gt;I am executing this script as below&lt;BR /&gt;&lt;BR /&gt;#ksh -x /home/user1/test.ksh &amp;gt; test.log&lt;BR /&gt;&lt;BR /&gt;When I cat this log file the output of pwd and date are coming to logfile, but not commands. Can someone give me a hint to solve this?&lt;BR /&gt;&lt;BR /&gt;TIA&lt;BR /&gt;Shahul</description>
      <pubDate>Fri, 11 Apr 2003 10:27:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/redirecting-output/m-p/2949149#M931591</guid>
      <dc:creator>Shahul</dc:creator>
      <dc:date>2003-04-11T10:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecting output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/redirecting-output/m-p/2949150#M931592</link>
      <description>Shahul,&lt;BR /&gt;&lt;BR /&gt;# ksh -x /home/user1/test.ksh &amp;gt; test.log 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;- ramd.</description>
      <pubDate>Fri, 11 Apr 2003 10:29:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/redirecting-output/m-p/2949150#M931592</guid>
      <dc:creator>Ramkumar Devanathan</dc:creator>
      <dc:date>2003-04-11T10:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Redirecting output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/redirecting-output/m-p/2949151#M931593</link>
      <description>To explain a bit more -&lt;BR /&gt;&lt;BR /&gt;2&amp;gt;&amp;amp;1 redirects stderr (device id 2) to stdout (device id 1).&lt;BR /&gt;&lt;BR /&gt;the normal redirection '&amp;gt;' redirects only stdout to the file which is why you got only the output to the file.&lt;BR /&gt;&lt;BR /&gt;so, redirect stderr to stdout and thereafter redirect stdout to the file.&lt;BR /&gt;&lt;BR /&gt;- ramd.</description>
      <pubDate>Fri, 11 Apr 2003 10:35:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/redirecting-output/m-p/2949151#M931593</guid>
      <dc:creator>Ramkumar Devanathan</dc:creator>
      <dc:date>2003-04-11T10:35:31Z</dc:date>
    </item>
  </channel>
</rss>

