<?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: Moving logs in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-logs/m-p/5166506#M681587</link>
    <description>&lt;!--!*#--&gt;Hi:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; But from what I am noticing its just not writing the logs to the new location&lt;BR /&gt;&lt;BR /&gt;That's because you didn't tell 'pax' to do that.  You might want:&lt;BR /&gt;&lt;BR /&gt;# pax -rw ./ /data5/logs&lt;BR /&gt;&lt;BR /&gt;THe use of the 'cat' to read your file of file names is useless overhead.  Instead, do:&lt;BR /&gt;&lt;BR /&gt;while read FILE X&lt;BR /&gt;do&lt;BR /&gt;    pax -rw ./${FILE} /data5/logs &amp;amp;&amp;amp; rm ./${FILE}&lt;BR /&gt;done &amp;lt; /tmp/filelist&lt;BR /&gt;&lt;BR /&gt;...where '/tmp/filelist' contains the filenames, one per line as you noted.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 26 Mar 2009 23:34:49 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2009-03-26T23:34:49Z</dc:date>
    <item>
      <title>Moving logs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-logs/m-p/5166505#M681586</link>
      <description>&lt;BR /&gt;I am doing the following for moving logs from an archived logs location to another filesystem. I am using pax to maintain the directory structure - &lt;BR /&gt;&lt;BR /&gt;#for i in `cat tmp`&lt;BR /&gt;&amp;gt; do&lt;BR /&gt;&amp;gt; pax $i /data5/logs &amp;amp;&amp;amp; rm $i&lt;BR /&gt;&amp;gt; done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Where tmp contains - &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;./reg/cc4/app/ap2.qbo20070402.log.gz&lt;BR /&gt;./reg/cc4/app/admin.qbo20070403.log.gz&lt;BR /&gt;./reg/cc4/app/ap1.qbo20070403.log.gz&lt;BR /&gt;./reg/cc4/app/ap2.qbo20070403.log.gz&lt;BR /&gt;./reg/cc4/app/admin.qbo20070404.log.gz&lt;BR /&gt;./reg/cc4/app/ap1.qbo20070404.log.gz&lt;BR /&gt;./reg/cc4/app/ap2.qbo20070404.log.gz &lt;BR /&gt;&lt;BR /&gt;....&lt;BR /&gt;&lt;BR /&gt;But from what I am noticing its just not writing the logs to the new location.. Is something wrong with the for statement I am using above.( and I am also not seeing any errors while its just running)&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Mar 2009 23:15:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-logs/m-p/5166505#M681586</guid>
      <dc:creator>Allanm</dc:creator>
      <dc:date>2009-03-26T23:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: Moving logs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-logs/m-p/5166506#M681587</link>
      <description>&lt;!--!*#--&gt;Hi:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; But from what I am noticing its just not writing the logs to the new location&lt;BR /&gt;&lt;BR /&gt;That's because you didn't tell 'pax' to do that.  You might want:&lt;BR /&gt;&lt;BR /&gt;# pax -rw ./ /data5/logs&lt;BR /&gt;&lt;BR /&gt;THe use of the 'cat' to read your file of file names is useless overhead.  Instead, do:&lt;BR /&gt;&lt;BR /&gt;while read FILE X&lt;BR /&gt;do&lt;BR /&gt;    pax -rw ./${FILE} /data5/logs &amp;amp;&amp;amp; rm ./${FILE}&lt;BR /&gt;done &amp;lt; /tmp/filelist&lt;BR /&gt;&lt;BR /&gt;...where '/tmp/filelist' contains the filenames, one per line as you noted.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Mar 2009 23:34:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-logs/m-p/5166506#M681587</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-03-26T23:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Moving logs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-logs/m-p/5166507#M681588</link>
      <description>Thanks</description>
      <pubDate>Thu, 26 Mar 2009 23:46:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-logs/m-p/5166507#M681588</guid>
      <dc:creator>Allanm</dc:creator>
      <dc:date>2009-03-26T23:46:10Z</dc:date>
    </item>
  </channel>
</rss>

