<?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: Shell script to calculate time since last file modification in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-to-calculate-time-since-last-file-modification/m-p/3415257#M706893</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try perlmonks.org&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.perlmonks.org/index.pl?node=perlman%3Aperlfunc%3Acategorical" target="_blank"&gt;http://www.perlmonks.org/index.pl?node=perlman%3Aperlfunc%3Acategorical&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;also &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.rt.com/man/perlfunc.1.html" target="_blank"&gt;http://www.rt.com/man/perlfunc.1.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 04 Nov 2004 17:05:46 GMT</pubDate>
    <dc:creator>Sanjay_6</dc:creator>
    <dc:date>2004-11-04T17:05:46Z</dc:date>
    <item>
      <title>Shell script to calculate time since last file modification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-to-calculate-time-since-last-file-modification/m-p/3415250#M706886</link>
      <description>Does anyone have a shell script that will output the time (in seconds) that has elapsed since the last modification of a file?  Basically, I need to email if a file has not been modified since x seconds.</description>
      <pubDate>Thu, 04 Nov 2004 13:46:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-to-calculate-time-since-last-file-modification/m-p/3415250#M706886</guid>
      <dc:creator>ABS_1</dc:creator>
      <dc:date>2004-11-04T13:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script to calculate time since last file modification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-to-calculate-time-since-last-file-modification/m-p/3415251#M706887</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;A coupld of ways listed here,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=105260" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=105260&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;regds&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Nov 2004 13:51:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-to-calculate-time-since-last-file-modification/m-p/3415251#M706887</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2004-11-04T13:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script to calculate time since last file modification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-to-calculate-time-since-last-file-modification/m-p/3415252#M706888</link>
      <description>&lt;BR /&gt;Why not turn it around.&lt;BR /&gt;&lt;BR /&gt;'touch -t' a reference file with that target time.&lt;BR /&gt;&lt;BR /&gt;next 'find -newer ...'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Nov 2004 13:54:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-to-calculate-time-since-last-file-modification/m-p/3415252#M706888</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2004-11-04T13:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script to calculate time since last file modification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-to-calculate-time-since-last-file-modification/m-p/3415253#M706889</link>
      <description>Using perl, -M returns age of a file as a number of days and partial day. So you could do the following-&lt;BR /&gt; &lt;BR /&gt;perl -e 'print 24*60*60*(-M $ARGV[0])' afile&lt;BR /&gt; &lt;BR /&gt;HTH&lt;BR /&gt; &lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Thu, 04 Nov 2004 15:10:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-to-calculate-time-since-last-file-modification/m-p/3415253#M706889</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2004-11-04T15:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script to calculate time since last file modification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-to-calculate-time-since-last-file-modification/m-p/3415254#M706890</link>
      <description>Hi ROdney,&lt;BR /&gt;&lt;BR /&gt;Thanks for the one liner.  That will do the trick.  By the way, doing a man on Perl does not explain the -M option, where would this option be described (new to Perl...).  Thanks so much!</description>
      <pubDate>Thu, 04 Nov 2004 16:51:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-to-calculate-time-since-last-file-modification/m-p/3415254#M706890</guid>
      <dc:creator>ABS_1</dc:creator>
      <dc:date>2004-11-04T16:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script to calculate time since last file modification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-to-calculate-time-since-last-file-modification/m-p/3415255#M706891</link>
      <description>If you have a full install of perl, then you could do a "man perlfunc" for perl functions.&lt;BR /&gt; &lt;BR /&gt;Usually stored under /opt/perl.&lt;BR /&gt; &lt;BR /&gt;HTH&lt;BR /&gt; &lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Thu, 04 Nov 2004 16:58:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-to-calculate-time-since-last-file-modification/m-p/3415255#M706891</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2004-11-04T16:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script to calculate time since last file modification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-to-calculate-time-since-last-file-modification/m-p/3415256#M706892</link>
      <description>man on perlfunc comes back with nothing.  I guess I don't have the full version installed.  Anywhere else (perhaps online)?</description>
      <pubDate>Thu, 04 Nov 2004 17:01:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-to-calculate-time-since-last-file-modification/m-p/3415256#M706892</guid>
      <dc:creator>ABS_1</dc:creator>
      <dc:date>2004-11-04T17:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script to calculate time since last file modification</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-to-calculate-time-since-last-file-modification/m-p/3415257#M706893</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try perlmonks.org&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.perlmonks.org/index.pl?node=perlman%3Aperlfunc%3Acategorical" target="_blank"&gt;http://www.perlmonks.org/index.pl?node=perlman%3Aperlfunc%3Acategorical&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;also &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.rt.com/man/perlfunc.1.html" target="_blank"&gt;http://www.rt.com/man/perlfunc.1.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Nov 2004 17:05:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-to-calculate-time-since-last-file-modification/m-p/3415257#M706893</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2004-11-04T17:05:46Z</dc:date>
    </item>
  </channel>
</rss>

