<?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 monitor a log file in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/monitor-a-log-file/m-p/3565794#M838437</link>
    <description>hey,&lt;BR /&gt;i have a log file which gets updated every minute. I need to create a script which monitors the log file , if it doesnt update for 5 minutes then send me an email.&lt;BR /&gt;I can put this cron and run every 5 min.&lt;BR /&gt;Is there any way i can write a script or use a find command?&lt;BR /&gt;The log file time stamp is in GMT!&lt;BR /&gt;thanks,</description>
    <pubDate>Fri, 17 Jun 2005 00:17:29 GMT</pubDate>
    <dc:creator>Sachin_46</dc:creator>
    <dc:date>2005-06-17T00:17:29Z</dc:date>
    <item>
      <title>monitor a log file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitor-a-log-file/m-p/3565794#M838437</link>
      <description>hey,&lt;BR /&gt;i have a log file which gets updated every minute. I need to create a script which monitors the log file , if it doesnt update for 5 minutes then send me an email.&lt;BR /&gt;I can put this cron and run every 5 min.&lt;BR /&gt;Is there any way i can write a script or use a find command?&lt;BR /&gt;The log file time stamp is in GMT!&lt;BR /&gt;thanks,</description>
      <pubDate>Fri, 17 Jun 2005 00:17:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitor-a-log-file/m-p/3565794#M838437</guid>
      <dc:creator>Sachin_46</dc:creator>
      <dc:date>2005-06-17T00:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: monitor a log file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitor-a-log-file/m-p/3565795#M838438</link>
      <description>You can try this as,&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;cd &lt;LOCATION&gt;&lt;BR /&gt;touch newfile&lt;BR /&gt;find . -type f -newerm newfile&lt;BR /&gt;rm -f newfile&lt;BR /&gt;&lt;BR /&gt;Put this file in cron to execute for every 5 minutes.&lt;BR /&gt;&lt;BR /&gt;hth.&lt;BR /&gt;&lt;BR /&gt;&lt;/LOCATION&gt;</description>
      <pubDate>Fri, 17 Jun 2005 02:43:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitor-a-log-file/m-p/3565795#M838438</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-06-17T02:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: monitor a log file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/monitor-a-log-file/m-p/3565796#M838439</link>
      <description>Hi Sachin&lt;BR /&gt;maybe something like that ?&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;while true&lt;BR /&gt;do&lt;BR /&gt;   touch /tmp/timefile&lt;BR /&gt;   sleep 300&lt;BR /&gt;   if test /tmp/timefile -nt /tmp/yourlogfile ; then&lt;BR /&gt;      echo "timefile newer than yourlogfile" | mail root&lt;BR /&gt;   else&lt;BR /&gt;      echo "yourlogfile acceded since five minutes"&lt;BR /&gt;   fi&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Joel</description>
      <pubDate>Fri, 17 Jun 2005 03:08:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/monitor-a-log-file/m-p/3565796#M838439</guid>
      <dc:creator>Joel Girot</dc:creator>
      <dc:date>2005-06-17T03:08:38Z</dc:date>
    </item>
  </channel>
</rss>

