<?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: audomon -X in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/audomon-x/m-p/4382897#M732415</link>
    <description>I can't get that -X command to fire off, audomon just keeps running.&lt;BR /&gt;&lt;BR /&gt;Reading audomon(1M) very closely indicates you need to do:&lt;BR /&gt;audomon -p 20 -t 1 -w 90 \&lt;BR /&gt;-X "/usr/bin/find /var/.audit -type f -mtime +60 -exec rm {} + #"&lt;BR /&gt;&lt;BR /&gt;Where the "#" comments out the useless string "OldTrail".&lt;BR /&gt;&lt;BR /&gt;Or you may want to use: ... -X "/path/to/myscript"&lt;BR /&gt;Then myscript can do that find and ignore "OldTrail" in $1.&lt;BR /&gt;&lt;BR /&gt;(That "1;" may have been "\;"??)</description>
    <pubDate>Thu, 19 Mar 2009 04:38:33 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2009-03-19T04:38:33Z</dc:date>
    <item>
      <title>audomon -X</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/audomon-x/m-p/4382894#M732412</link>
      <description>I'm trying to use audomon -X to delete audit log files that are older than 60 days:&lt;BR /&gt;&lt;BR /&gt;audomon -p 20 -t 1 -w 90 -X \&lt;BR /&gt;'/usr/bin/find /var/.audit" -mtime +60 -exec rm {} 1;'&lt;BR /&gt;&lt;BR /&gt;But I keep getting the "find: missing conjuction" error everytime audomon runs.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 18 Mar 2009 23:07:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/audomon-x/m-p/4382894#M732412</guid>
      <dc:creator>Tim Yeung_1</dc:creator>
      <dc:date>2009-03-18T23:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: audomon -X</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/audomon-x/m-p/4382895#M732413</link>
      <description>Hi Tim:&lt;BR /&gt;&lt;BR /&gt;THe 'find()' command syntax is wrong.  I believe that you want:&lt;BR /&gt;&lt;BR /&gt;# audomon -p 20 -t 1 -w 90 -X "/usr/bin/find /var/.audit -type f -mtime +60 -exec rm {} +"&lt;BR /&gt;&lt;BR /&gt;...note that I added the restriction to find only files ('-type f') which should allow the 'rm' to work on all elements found.  THe use of the '+' terminator for the '-exec' optimizes the performance.&lt;BR /&gt;&lt;BR /&gt;See the 'find' manpages for more information.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 18 Mar 2009 23:23:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/audomon-x/m-p/4382895#M732413</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-03-18T23:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: audomon -X</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/audomon-x/m-p/4382896#M732414</link>
      <description>Still getting "missing conjunction"&lt;BR /&gt;I entered exactly what you suggested.&lt;BR /&gt;There are spaces between rm, {}, and +&lt;BR /&gt;&lt;BR /&gt;audomon -p 20 -t 1 -w 90 -X "/usr/bin/find /var/.audit -type f -mtime +60 -exec rm {} +"&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Mar 2009 23:38:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/audomon-x/m-p/4382896#M732414</guid>
      <dc:creator>Tim Yeung_1</dc:creator>
      <dc:date>2009-03-18T23:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: audomon -X</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/audomon-x/m-p/4382897#M732415</link>
      <description>I can't get that -X command to fire off, audomon just keeps running.&lt;BR /&gt;&lt;BR /&gt;Reading audomon(1M) very closely indicates you need to do:&lt;BR /&gt;audomon -p 20 -t 1 -w 90 \&lt;BR /&gt;-X "/usr/bin/find /var/.audit -type f -mtime +60 -exec rm {} + #"&lt;BR /&gt;&lt;BR /&gt;Where the "#" comments out the useless string "OldTrail".&lt;BR /&gt;&lt;BR /&gt;Or you may want to use: ... -X "/path/to/myscript"&lt;BR /&gt;Then myscript can do that find and ignore "OldTrail" in $1.&lt;BR /&gt;&lt;BR /&gt;(That "1;" may have been "\;"??)</description>
      <pubDate>Thu, 19 Mar 2009 04:38:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/audomon-x/m-p/4382897#M732415</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-03-19T04:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: audomon -X</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/audomon-x/m-p/4382898#M732416</link>
      <description>Yes, it works now.  The '#' did it!&lt;BR /&gt;&lt;BR /&gt;In my original note, '1;' was suppose to be '/;'&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Thu, 19 Mar 2009 14:51:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/audomon-x/m-p/4382898#M732416</guid>
      <dc:creator>Tim Yeung_1</dc:creator>
      <dc:date>2009-03-19T14:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: audomon -X</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/audomon-x/m-p/4382899#M732417</link>
      <description>Hi (again) Tim:&lt;BR /&gt;&lt;BR /&gt;I'm glad Dennis solved this as it was puzzling me.  I don't have an audited system nor 11.31 to try.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; In my original note, '1;' was suppose to be '/;'&lt;BR /&gt;&lt;BR /&gt;No, that would have been an escaped semicolon as:&lt;BR /&gt;&lt;BR /&gt;# ... \;&lt;BR /&gt;&lt;BR /&gt;...which when replaced with a '+' improves the performance as I noted, since arguments are bundled and passed as a list/array to the object of the '-exec'.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 19 Mar 2009 14:59:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/audomon-x/m-p/4382899#M732417</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-03-19T14:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: audomon -X</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/audomon-x/m-p/4382900#M732418</link>
      <description>&amp;gt;JRF: I don't have an audited system nor 11.31 to try.&lt;BR /&gt;&lt;BR /&gt;I didn't have an audited system but I did have 11.31 and the man page.&lt;BR /&gt;&lt;BR /&gt;Sometimes if you have never heard of the command, you read more closely.  :-)</description>
      <pubDate>Fri, 20 Mar 2009 02:03:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/audomon-x/m-p/4382900#M732418</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-03-20T02:03:01Z</dc:date>
    </item>
  </channel>
</rss>

