<?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 Log the process in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/log-the-process/m-p/3680662#M245310</link>
    <description>I run the below command on the unix shell,&lt;BR /&gt;&lt;BR /&gt;mv /tmp/abc /tmp1/ &amp;gt;&amp;gt; /tmp/abc.log&lt;BR /&gt;&lt;BR /&gt;but no matter the process is success or not , it still no message write to the log ( eg. no such file ) , if I want to log what file has been moved , what can I do ? thx</description>
    <pubDate>Tue, 29 Nov 2005 06:15:17 GMT</pubDate>
    <dc:creator>hanyyu1</dc:creator>
    <dc:date>2005-11-29T06:15:17Z</dc:date>
    <item>
      <title>Log the process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/log-the-process/m-p/3680662#M245310</link>
      <description>I run the below command on the unix shell,&lt;BR /&gt;&lt;BR /&gt;mv /tmp/abc /tmp1/ &amp;gt;&amp;gt; /tmp/abc.log&lt;BR /&gt;&lt;BR /&gt;but no matter the process is success or not , it still no message write to the log ( eg. no such file ) , if I want to log what file has been moved , what can I do ? thx</description>
      <pubDate>Tue, 29 Nov 2005 06:15:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/log-the-process/m-p/3680662#M245310</guid>
      <dc:creator>hanyyu1</dc:creator>
      <dc:date>2005-11-29T06:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Log the process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/log-the-process/m-p/3680663#M245311</link>
      <description>You need to write your own shell script with log messages based on success or failure from $? Or, you can use redirect mv /tmp/abc /tmp1/ 2&amp;gt;&amp;amp;1 /tmp/abc.log&lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Tue, 29 Nov 2005 06:26:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/log-the-process/m-p/3680663#M245311</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2005-11-29T06:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Log the process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/log-the-process/m-p/3680664#M245312</link>
      <description>&amp;gt;&amp;gt; is saying that it will log only STDOUT messages to /tmp/abc.log (appending).&lt;BR /&gt;&lt;BR /&gt;If you want to capture standard output and as well as standerr messages then,&lt;BR /&gt;&lt;BR /&gt;# mv /tmp/han-muthu /tmp1/ 1&amp;gt;&amp;gt;/tmp/abc.log 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;which adds error messages also.&lt;BR /&gt;&lt;BR /&gt;now /tmp/han-muthu file will not be there and it will make entry in that file.&lt;BR /&gt;&lt;BR /&gt;To check operation success then,&lt;BR /&gt;&lt;BR /&gt;echo ${?}&lt;BR /&gt;&lt;BR /&gt;if 0 then success else it is failure. see relative man page with RETURN values part.&lt;BR /&gt;&lt;BR /&gt;hth.&lt;BR /&gt;</description>
      <pubDate>Tue, 29 Nov 2005 06:30:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/log-the-process/m-p/3680664#M245312</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-11-29T06:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Log the process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/log-the-process/m-p/3680665#M245313</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;while redirecting standard output / error the convention is to use &lt;BR /&gt;   1&amp;gt;&amp;gt; for redirecting the standard output&lt;BR /&gt;   2&amp;gt;&amp;gt; for redirecting the standard error&lt;BR /&gt;&lt;BR /&gt;in your case if you want to log the error msg ( no such file) to the abc.log , we have to use&lt;BR /&gt;&lt;BR /&gt;#mv /tmp/abc /tmp/1 2&amp;gt;&amp;gt; /tmp/abc.log&lt;BR /&gt;&lt;BR /&gt;This will redirect the error ( which is displayed in console ) to the abc.log&lt;BR /&gt;&lt;BR /&gt;The same time if you want redirect the output(otherthan error messages) like output of #ls command etc, we have to use&lt;BR /&gt;&lt;BR /&gt;#ls 1&amp;gt;&amp;gt; /tmp/abc.log&lt;BR /&gt;&lt;BR /&gt;in this case the output will be redirected to abc.log instead of getting displayed on the console.&lt;BR /&gt;&lt;BR /&gt;With Regards,&lt;BR /&gt;&lt;BR /&gt;Siva.</description>
      <pubDate>Tue, 29 Nov 2005 06:37:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/log-the-process/m-p/3680665#M245313</guid>
      <dc:creator>Sivakumar TS</dc:creator>
      <dc:date>2005-11-29T06:37:33Z</dc:date>
    </item>
  </channel>
</rss>

