<?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: Files 15 mins older than sysdate in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/files-15-mins-older-than-sysdate/m-p/5175363#M458874</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Restart the swagentd daemon.&lt;BR /&gt;&lt;BR /&gt;#/usr/sbin/swagentd -r</description>
    <pubDate>Fri, 15 May 2009 09:31:12 GMT</pubDate>
    <dc:creator>Ganesan R</dc:creator>
    <dc:date>2009-05-15T09:31:12Z</dc:date>
    <item>
      <title>Files 15 mins older than sysdate</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/files-15-mins-older-than-sysdate/m-p/5175353#M458864</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Does anyone know how I can get find to give me a list of files within a directory that is 15 minutes or more older that the current system date?  Or does anyone have a handy little script that does this?  More than this I need really a count of how many files are within a directory that are 15 minutes or more older than the system date.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 14 May 2009 15:00:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/files-15-mins-older-than-sysdate/m-p/5175353#M458864</guid>
      <dc:creator>Yvonne Butler</dc:creator>
      <dc:date>2009-05-14T15:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Files 15 mins older than sysdate</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/files-15-mins-older-than-sysdate/m-p/5175354#M458865</link>
      <description>touch -t MMDDhhmm /tmp/dummyfile # where hhmm is timestamp of 15 minutes ago&lt;BR /&gt;&lt;BR /&gt;cd /my/directory&lt;BR /&gt;find ./ -newer /tmp/dummyfile | wc -l&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;hope this helps</description>
      <pubDate>Thu, 14 May 2009 15:10:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/files-15-mins-older-than-sysdate/m-p/5175354#M458865</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2009-05-14T15:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Files 15 mins older than sysdate</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/files-15-mins-older-than-sysdate/m-p/5175355#M458866</link>
      <description>&lt;!--!*#--&gt;Hi Yvonne:&lt;BR /&gt;&lt;BR /&gt;You can use:&lt;BR /&gt;&lt;BR /&gt;# perl -MFile::Find -le '$path=shift||qq(.);find(sub{print $File::Find::name if -f $_ &amp;amp;&amp;amp; -M _ &amp;lt;= (15/(60*60*24))},$path)' /dirname&lt;BR /&gt;&lt;BR /&gt;If you omit the "/dirname" argument, your current working directory will be examined.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 14 May 2009 15:10:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/files-15-mins-older-than-sysdate/m-p/5175355#M458866</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-05-14T15:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Files 15 mins older than sysdate</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/files-15-mins-older-than-sysdate/m-p/5175356#M458867</link>
      <description>Here's a pseudo-script, you'll need to do the translation:&lt;BR /&gt;&lt;BR /&gt;get current time using date&lt;BR /&gt;manipulate that time by subtracting 15 minutes&lt;BR /&gt;use find with -older to find files matching&lt;BR /&gt;pipe results to "wc -l"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Thu, 14 May 2009 15:12:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/files-15-mins-older-than-sysdate/m-p/5175356#M458867</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2009-05-14T15:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Files 15 mins older than sysdate</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/files-15-mins-older-than-sysdate/m-p/5175357#M458868</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;Oops, you want files _OLDER_ so:&lt;BR /&gt;&lt;BR /&gt;#  perl -MFile::Find -le '$path=shift||qq(.);find(sub{print $File::Find::name if -f $_ &amp;amp;&amp;amp; -M _ &amp;gt;= (15/(60*60*24))},$path)' /directory&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 14 May 2009 15:12:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/files-15-mins-older-than-sysdate/m-p/5175357#M458868</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-05-14T15:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Files 15 mins older than sysdate</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/files-15-mins-older-than-sysdate/m-p/5175358#M458869</link>
      <description>The perl command doesn't seem to work:&lt;BR /&gt;&lt;BR /&gt;Can't locate File/Find.pm in @INC (@INC contains: /opt/perl5/lib/5.00502/PA-RISC1.1 /opt/perl5/lib/5.00502 /opt/perl5/lib/site_perl/5.005/PA-RISC1.1 /opt/perl5/lib/site_perl/5.005 .).&lt;BR /&gt;BEGIN failed--compilation aborted.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 14 May 2009 15:18:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/files-15-mins-older-than-sysdate/m-p/5175358#M458869</guid>
      <dc:creator>Yvonne Butler</dc:creator>
      <dc:date>2009-05-14T15:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: Files 15 mins older than sysdate</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/files-15-mins-older-than-sysdate/m-p/5175359#M458870</link>
      <description>Mel's find command will work with 1 changes, since you want files OLDER than sysdate - 15 minutes.&lt;BR /&gt;&lt;BR /&gt;find ./ ! -newer /tmp/dummyfile&lt;BR /&gt;&lt;BR /&gt;Notice the '!' prior to the '-newer' to make it not newer than the /tmp/dummyfile.</description>
      <pubDate>Thu, 14 May 2009 15:22:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/files-15-mins-older-than-sysdate/m-p/5175359#M458870</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2009-05-14T15:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: Files 15 mins older than sysdate</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/files-15-mins-older-than-sysdate/m-p/5175360#M458871</link>
      <description>Hi Yvonne:&lt;BR /&gt;&lt;BR /&gt;Perl 5.005 is OLD.  If you want, update to a current (5.8.8 or later) version:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=PERL" target="_blank"&gt;http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=PERL&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 14 May 2009 15:23:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/files-15-mins-older-than-sysdate/m-p/5175360#M458871</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-05-14T15:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Files 15 mins older than sysdate</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/files-15-mins-older-than-sysdate/m-p/5175361#M458872</link>
      <description>Hi (one more time):&lt;BR /&gt;&lt;BR /&gt;I'm sorry, NO POINTS FOR THIS CORRECTION, but for 15 _minutes_ use:&lt;BR /&gt;&lt;BR /&gt;(15/(60*24))&lt;BR /&gt;&lt;BR /&gt;NOT:&lt;BR /&gt;&lt;BR /&gt;(15/(60*60*24))&lt;BR /&gt;&lt;BR /&gt;...which represents 15 _seconds_&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 14 May 2009 15:34:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/files-15-mins-older-than-sysdate/m-p/5175361#M458872</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-05-14T15:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: Files 15 mins older than sysdate</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/files-15-mins-older-than-sysdate/m-p/5175362#M458873</link>
      <description>I'm trying to upgrade the Perl installed on this system but now I've hit another issue, for some reason the system isn't allowing me to swinstall anything, I get a message about not having permission for this operation when I'm root!&lt;BR /&gt;&lt;BR /&gt;Anyway, once I've got this fixed and have installed the later version of Perl, I'll try again.</description>
      <pubDate>Fri, 15 May 2009 08:20:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/files-15-mins-older-than-sysdate/m-p/5175362#M458873</guid>
      <dc:creator>Yvonne Butler</dc:creator>
      <dc:date>2009-05-15T08:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: Files 15 mins older than sysdate</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/files-15-mins-older-than-sysdate/m-p/5175363#M458874</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Restart the swagentd daemon.&lt;BR /&gt;&lt;BR /&gt;#/usr/sbin/swagentd -r</description>
      <pubDate>Fri, 15 May 2009 09:31:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/files-15-mins-older-than-sysdate/m-p/5175363#M458874</guid>
      <dc:creator>Ganesan R</dc:creator>
      <dc:date>2009-05-15T09:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Files 15 mins older than sysdate</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/files-15-mins-older-than-sysdate/m-p/5175364#M458875</link>
      <description>Hmm, that perl command doesn't seem to return the 15+ minutes older than sysdate count of files in the directory:&lt;BR /&gt;&lt;BR /&gt;root: /oraother/dst/comms/outtray # ll&lt;BR /&gt;total 9616&lt;BR /&gt;-rw-------   1 dstdba     dba        2417496 Feb  6  2008 core.0468&lt;BR /&gt;-rw-------   1 dstdba     dba        2483032 Jan 31  2008 core.9416&lt;BR /&gt;-rw-r--r--   1 dstdba     dba            786 Feb  6  2008 sqlnet.log.0452&lt;BR /&gt;-rw-r--r--   1 dstdba     dba            832 Feb  6  2008 sqlnet.log.0456&lt;BR /&gt;-rw-r--r--   1 dstdba     dba            786 Feb  6  2008 sqlnet.log.0469&lt;BR /&gt;-rw-r--r--   1 dstdba     dba            786 Feb  6  2008 sqlnet.log.0471&lt;BR /&gt;-rw-r--r--   1 dstdba     dba            832 Feb 15  2008 sqlnet.log.2185&lt;BR /&gt;-rw-r--r--   1 dstdba     dba            786 Feb 15  2008 sqlnet.log.2187&lt;BR /&gt;-rw-r--r--   1 dstdba     dba            786 Jan 31  2008 sqlnet.log.9393&lt;BR /&gt;-rw-r--r--   1 dstdba     dba            786 Jan 31  2008 sqlnet.log.9412&lt;BR /&gt;-rw-r--r--   1 dstdba     dba            786 Jan 31  2008 sqlnet.log.9416&lt;BR /&gt;-rw-r--r--   1 dstdba     dba            832 Feb  5  2008 sqlnet.log.9805&lt;BR /&gt;&lt;BR /&gt;root: /oraother/dst/comms/outtray # perl -MFile::Find -le '$path=shift||qq(.);find(sub{print $File::Find::name if -f $_&amp;amp;&amp;amp;-M_ &amp;gt;=(15/(60*24))},$path)' /oraother/dst/comms/outtray | wc -l&lt;BR /&gt;0&lt;BR /&gt;&lt;BR /&gt;Any ideas?</description>
      <pubDate>Fri, 15 May 2009 09:46:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/files-15-mins-older-than-sysdate/m-p/5175364#M458875</guid>
      <dc:creator>Yvonne Butler</dc:creator>
      <dc:date>2009-05-15T09:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: Files 15 mins older than sysdate</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/files-15-mins-older-than-sysdate/m-p/5175365#M458876</link>
      <description>Hi Yvonne:&lt;BR /&gt;&lt;BR /&gt;There are two problems here -- both mine!&lt;BR /&gt;&lt;BR /&gt;First, it looks like in the second post I made I lost some whitespace.  There is actually a warning that we could see:&lt;BR /&gt;&lt;BR /&gt;# perl -MFile::Find -wle '$path=shift||qq(.);find(sub{print $File::Find::name if -f $_&amp;amp;&amp;amp;-M_ &amp;gt;=(15/(60*24))},$path)'&lt;BR /&gt;&lt;BR /&gt;Next, my original, math was horrible!  FOr files older than 15-minutes we need:&lt;BR /&gt;&lt;BR /&gt;# perl -MFile::Find -le '$path=shift||qq(.);find(sub{print $File::Find::name if -f  $_ &amp;amp;&amp;amp; -M _ &amp;gt;= ((15*60)/(60*60*24))},$path)'  &lt;BR /&gt;&lt;BR /&gt;You will see that I haven't tried to factor in my head :-)&lt;BR /&gt;&lt;BR /&gt;The '-M' tests the modification age of a file in the number of DAYS, so the expression represents that fraction of a DAY that is 15-minutes.&lt;BR /&gt;&lt;BR /&gt;My apologies again, but at least your Perl is reasonably up-to-date now!&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 15 May 2009 10:54:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/files-15-mins-older-than-sysdate/m-p/5175365#M458876</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-05-15T10:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Files 15 mins older than sysdate</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/files-15-mins-older-than-sysdate/m-p/5175366#M458877</link>
      <description>Thanks very much James, that revised Perl command does exactly what I need (with a "| wc -l" at the end).</description>
      <pubDate>Fri, 15 May 2009 11:32:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/files-15-mins-older-than-sysdate/m-p/5175366#M458877</guid>
      <dc:creator>Yvonne Butler</dc:creator>
      <dc:date>2009-05-15T11:32:21Z</dc:date>
    </item>
  </channel>
</rss>

