<?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 Appending two file parllaly in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/appending-two-file-parllaly/m-p/4676222#M658596</link>
    <description>HI Gurus,&lt;BR /&gt;&lt;BR /&gt;I have defined HISTFILE=/home/.sh_history&lt;BR /&gt;here all commands which i type will be appended to  /home/.sh_history &lt;BR /&gt;&lt;BR /&gt;I have created file /var/goodfile.Here my requirement is /var/goodfile also should also get appended with commands which i have typed parallely with /home/.sh_history&lt;BR /&gt;&lt;BR /&gt;Chandra</description>
    <pubDate>Wed, 18 Aug 2010 03:17:01 GMT</pubDate>
    <dc:creator>Chandrahasa s</dc:creator>
    <dc:date>2010-08-18T03:17:01Z</dc:date>
    <item>
      <title>Appending two file parllaly</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/appending-two-file-parllaly/m-p/4676222#M658596</link>
      <description>HI Gurus,&lt;BR /&gt;&lt;BR /&gt;I have defined HISTFILE=/home/.sh_history&lt;BR /&gt;here all commands which i type will be appended to  /home/.sh_history &lt;BR /&gt;&lt;BR /&gt;I have created file /var/goodfile.Here my requirement is /var/goodfile also should also get appended with commands which i have typed parallely with /home/.sh_history&lt;BR /&gt;&lt;BR /&gt;Chandra</description>
      <pubDate>Wed, 18 Aug 2010 03:17:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/appending-two-file-parllaly/m-p/4676222#M658596</guid>
      <dc:creator>Chandrahasa s</dc:creator>
      <dc:date>2010-08-18T03:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Appending two file parllaly</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/appending-two-file-parllaly/m-p/4676223#M658597</link>
      <description>About the best you can do is use the shell's history command to copy from ~/.sh_history to your file.  You would have to do this every so often:&lt;BR /&gt;history -100 &amp;gt;&amp;gt; /var/goodfile</description>
      <pubDate>Wed, 18 Aug 2010 04:10:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/appending-two-file-parllaly/m-p/4676223#M658597</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-08-18T04:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Appending two file parllaly</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/appending-two-file-parllaly/m-p/4676224#M658598</link>
      <description>Thanks for reply,&lt;BR /&gt;&lt;BR /&gt;Dennis if i do so there is possibility where same content appending multiple times to second file.&lt;BR /&gt;&lt;BR /&gt;Chandra</description>
      <pubDate>Wed, 18 Aug 2010 04:21:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/appending-two-file-parllaly/m-p/4676224#M658598</guid>
      <dc:creator>Chandrahasa s</dc:creator>
      <dc:date>2010-08-18T04:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Appending two file parllaly</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/appending-two-file-parllaly/m-p/4676225#M658599</link>
      <description>&amp;gt;there is possibility where same content appending multiple times to second file.&lt;BR /&gt;&lt;BR /&gt;Yes.  If you don't want overlapping commands you will have to work harder:&lt;BR /&gt;history -100 &amp;gt;&amp;gt; /var/goodfile&lt;BR /&gt;last_history=$(history -0 | awk '{print $1}')&lt;BR /&gt;&lt;BR /&gt;your commands  ...&lt;BR /&gt;&lt;BR /&gt;history $last_history &amp;gt;&amp;gt; /var/goodfile&lt;BR /&gt;last_history=$(history -0 | awk '{print $1}')&lt;BR /&gt;&lt;BR /&gt;Then repeat.</description>
      <pubDate>Wed, 18 Aug 2010 04:51:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/appending-two-file-parllaly/m-p/4676225#M658599</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-08-18T04:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Appending two file parllaly</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/appending-two-file-parllaly/m-p/4676226#M658600</link>
      <description>&amp;gt;there is possibility where same content appending multiple times&lt;BR /&gt;&lt;BR /&gt;Or you simply don't care and then you fix the output later:&lt;BR /&gt;sort -u /var/goodfile</description>
      <pubDate>Wed, 18 Aug 2010 05:05:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/appending-two-file-parllaly/m-p/4676226#M658600</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-08-18T05:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Appending two file parllaly</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/appending-two-file-parllaly/m-p/4676227#M658601</link>
      <description>Hi Chandra:&lt;BR /&gt;&lt;BR /&gt;# tail -f /home/.sh_history &amp;gt;&amp;gt;  /var/goodfile &lt;BR /&gt;&lt;BR /&gt;rgs</description>
      <pubDate>Thu, 19 Aug 2010 10:15:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/appending-two-file-parllaly/m-p/4676227#M658601</guid>
      <dc:creator>rariasn</dc:creator>
      <dc:date>2010-08-19T10:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Appending two file parllaly</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/appending-two-file-parllaly/m-p/4676228#M658602</link>
      <description>&amp;gt;rariasn: # tail -f /home/.sh_history&lt;BR /&gt;&lt;BR /&gt;Be aware that your shell history has binary data in it.  Where the history command knows the format.</description>
      <pubDate>Thu, 19 Aug 2010 22:37:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/appending-two-file-parllaly/m-p/4676228#M658602</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-08-19T22:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Appending two file parllaly</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/appending-two-file-parllaly/m-p/4676229#M658603</link>
      <description>&amp;gt; Be aware that your shell history has binary data in it. Where the history command knows the format.&lt;BR /&gt;&lt;BR /&gt;That's right. What if you would copy it real-time with a background dd? This dd won't terminate until it reaches an EOF. Maybe you could try it, I don't know if it works...</description>
      <pubDate>Fri, 20 Aug 2010 07:55:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/appending-two-file-parllaly/m-p/4676229#M658603</guid>
      <dc:creator>Viktor Balogh</dc:creator>
      <dc:date>2010-08-20T07:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Appending two file parllaly</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/appending-two-file-parllaly/m-p/4676230#M658604</link>
      <description>&amp;gt;Viktor: What if you would copy it real-time with a background dd? This dd won't terminate until it reaches an EOF.&lt;BR /&gt;&lt;BR /&gt;Why would you use dd(1) when tail "works"?&lt;BR /&gt;(tail doesn't care about binary and doesn't stop at the EOF.)</description>
      <pubDate>Fri, 20 Aug 2010 14:36:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/appending-two-file-parllaly/m-p/4676230#M658604</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-08-20T14:36:43Z</dc:date>
    </item>
  </channel>
</rss>

