<?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: Clear logs in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/clear-logs/m-p/4148119#M318432</link>
    <description>&lt;BR /&gt;Thanks JRF!&lt;BR /&gt;&lt;BR /&gt;And what if I need to have it mail me once done with pax and rm.</description>
    <pubDate>Wed, 20 Feb 2008 22:37:38 GMT</pubDate>
    <dc:creator>Allanm</dc:creator>
    <dc:date>2008-02-20T22:37:38Z</dc:date>
    <item>
      <title>Clear logs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/clear-logs/m-p/4148117#M318430</link>
      <description>&lt;BR /&gt;I am doing some housekeeping and clearing up some archived logs ,firstly I am using the pax command to copy stuff over so that I can copy the directory structure also. Then I issue the rm command after the job is completed to clear up space.&lt;BR /&gt;&lt;BR /&gt;Here is what I am doing : &lt;BR /&gt;&lt;BR /&gt;nohup /usr/bin/pax -rw bo/app/*2006* /logsfs/logs/archive/prod &amp;amp;&lt;BR /&gt;&lt;BR /&gt;and then the rm command : &lt;BR /&gt;rm -fr *2006*&lt;BR /&gt;&lt;BR /&gt;Can I do this in one single piped command.&lt;BR /&gt;&lt;BR /&gt;Please suggest.</description>
      <pubDate>Wed, 20 Feb 2008 21:59:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/clear-logs/m-p/4148117#M318430</guid>
      <dc:creator>Allanm</dc:creator>
      <dc:date>2008-02-20T21:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: Clear logs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/clear-logs/m-p/4148118#M318431</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;To execute the file removal only upon successful completion of the 'pax':&lt;BR /&gt;&lt;BR /&gt;# /usr/bin/pax -rw bo/app/*2006* /logsfs/logs/archive/prod &amp;amp;&amp;amp; rm -fr *2006*&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 20 Feb 2008 22:34:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/clear-logs/m-p/4148118#M318431</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-02-20T22:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Clear logs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/clear-logs/m-p/4148119#M318432</link>
      <description>&lt;BR /&gt;Thanks JRF!&lt;BR /&gt;&lt;BR /&gt;And what if I need to have it mail me once done with pax and rm.</description>
      <pubDate>Wed, 20 Feb 2008 22:37:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/clear-logs/m-p/4148119#M318432</guid>
      <dc:creator>Allanm</dc:creator>
      <dc:date>2008-02-20T22:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: Clear logs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/clear-logs/m-p/4148120#M318433</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;&amp;gt; And what if I need to have it mail me once done with pax and rm.&lt;BR /&gt;&lt;BR /&gt;You could simply do:&lt;BR /&gt;&lt;BR /&gt;# /usr/bin/pax -rw bo/app/*2006* /logsfs/logs/archive/prod &amp;amp;&amp;amp; { rm -fr *2006*; mailx -s "Logs cleared" root &amp;lt; /dev/null; }&lt;BR /&gt;&lt;BR /&gt;That is, if the 'pax' is successful; run the subshell process which removes the logs and mails the 'root' user a message.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Feb 2008 23:34:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/clear-logs/m-p/4148120#M318433</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-02-20T23:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Clear logs</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/clear-logs/m-p/4148121#M318434</link>
      <description>&lt;BR /&gt;I would want to run all this as nohup though.</description>
      <pubDate>Thu, 21 Feb 2008 01:33:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/clear-logs/m-p/4148121#M318434</guid>
      <dc:creator>Allanm</dc:creator>
      <dc:date>2008-02-21T01:33:41Z</dc:date>
    </item>
  </channel>
</rss>

