<?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 pearl script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/pearl-script/m-p/3699389#M249054</link>
    <description>hi guys,&lt;BR /&gt;&lt;BR /&gt;i want  a pearl script which has to monitor a log file of a database, which has to send a mail weather it is growing or not, every 5 minutes once. can i get that from someone.&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;prasad</description>
    <pubDate>Wed, 28 Dec 2005 22:58:19 GMT</pubDate>
    <dc:creator>hari prasad_4</dc:creator>
    <dc:date>2005-12-28T22:58:19Z</dc:date>
    <item>
      <title>pearl script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pearl-script/m-p/3699389#M249054</link>
      <description>hi guys,&lt;BR /&gt;&lt;BR /&gt;i want  a pearl script which has to monitor a log file of a database, which has to send a mail weather it is growing or not, every 5 minutes once. can i get that from someone.&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;prasad</description>
      <pubDate>Wed, 28 Dec 2005 22:58:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pearl-script/m-p/3699389#M249054</guid>
      <dc:creator>hari prasad_4</dc:creator>
      <dc:date>2005-12-28T22:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: pearl script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pearl-script/m-p/3699390#M249055</link>
      <description>Shalom prasad,&lt;BR /&gt;&lt;BR /&gt;What you ask for has been done to a great extent.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=51050" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=51050&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;There are links in this thread to over 200 sysadmin scripts in there. One of them probably does exactly what you want.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 29 Dec 2005 00:51:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pearl-script/m-p/3699390#M249055</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-12-29T00:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: pearl script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pearl-script/m-p/3699391#M249056</link>
      <description>You can try with shell scripting itself as,&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;# Change this to your log file&lt;BR /&gt;LOGFILE=/tmp/test.log&lt;BR /&gt;&lt;BR /&gt;while [ 1 ]&lt;BR /&gt;do&lt;BR /&gt;  SIZE=$(ls -l ${LOGFILE} | awk '{ print $9; }')&lt;BR /&gt;  let OLDSIZE=SIZE&lt;BR /&gt; &lt;BR /&gt;  if [[ ${SIZE} -gt ${OLDSIZE} ]]&lt;BR /&gt;  then&lt;BR /&gt;    echo "${LOGFILE} is growing" | mailx -s "logfile size alert" mailid&lt;BR /&gt;  else&lt;BR /&gt;    echo "${LOGFILE} is not growing" | mailx -s "logfile size alert" mailid&lt;BR /&gt;  fi&lt;BR /&gt;  &lt;BR /&gt;  # Sleep time - 5 min&lt;BR /&gt;  sleep 300  &lt;BR /&gt;done&lt;BR /&gt;  &lt;BR /&gt;# END&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;############&lt;BR /&gt;&lt;BR /&gt;# chmod u+x script.sh&lt;BR /&gt;# ./script.sh 1&amp;gt;/tmp/logfile 2&amp;gt;&amp;amp;1 &amp;amp;&lt;BR /&gt;# tail -f /tmp/logfile&lt;BR /&gt;&lt;BR /&gt;gives details.&lt;BR /&gt;&lt;BR /&gt;-Muthu  &lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Dec 2005 01:23:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pearl-script/m-p/3699391#M249056</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-12-29T01:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: pearl script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pearl-script/m-p/3699392#M249057</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;thanks for your replies.&lt;BR /&gt;&lt;BR /&gt;since it is a log file, whenever it modifies the file i need some kind of notification, the same script i wanted include in even aix server also.&lt;BR /&gt;&lt;BR /&gt;prasad</description>
      <pubDate>Sat, 31 Dec 2005 01:11:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pearl-script/m-p/3699392#M249057</guid>
      <dc:creator>hari prasad_4</dc:creator>
      <dc:date>2005-12-31T01:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: pearl script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pearl-script/m-p/3699393#M249058</link>
      <description>Change this lines,&lt;BR /&gt;&lt;BR /&gt;echo "${LOGFILE} is growing" | mailx -s "logfile size alert" mailid&lt;BR /&gt;else&lt;BR /&gt;echo "${LOGFILE} is not growing" | mailx -s "logfile size alert" mailid&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;with your mail setting. It will send mails to your account.&lt;BR /&gt;&lt;BR /&gt;Script will work on aix server also.&lt;BR /&gt;&lt;BR /&gt;-Muthu</description>
      <pubDate>Mon, 02 Jan 2006 02:00:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pearl-script/m-p/3699393#M249058</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2006-01-02T02:00:43Z</dc:date>
    </item>
  </channel>
</rss>

