<?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 script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/2790561#M79557</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have a script name test.sh&lt;BR /&gt;&lt;BR /&gt;It checks for the extents of Informix Database that are more then or equal to 100 and sends a warning message to me.&lt;BR /&gt;&lt;BR /&gt;As per this script if there are two or more tables having more then 100 then it sends two or more mails.&lt;BR /&gt;&lt;BR /&gt;I want it to send only one mail even if there are more then one tables more then 100.&lt;BR /&gt;&lt;BR /&gt;How can it be done?&lt;BR /&gt;Script attached.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Raje.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 21 Aug 2002 07:02:30 GMT</pubDate>
    <dc:creator>Sanjiv Sharma_1</dc:creator>
    <dc:date>2002-08-21T07:02:30Z</dc:date>
    <item>
      <title>script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/2790561#M79557</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have a script name test.sh&lt;BR /&gt;&lt;BR /&gt;It checks for the extents of Informix Database that are more then or equal to 100 and sends a warning message to me.&lt;BR /&gt;&lt;BR /&gt;As per this script if there are two or more tables having more then 100 then it sends two or more mails.&lt;BR /&gt;&lt;BR /&gt;I want it to send only one mail even if there are more then one tables more then 100.&lt;BR /&gt;&lt;BR /&gt;How can it be done?&lt;BR /&gt;Script attached.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Raje.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Aug 2002 07:02:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/2790561#M79557</guid>
      <dc:creator>Sanjiv Sharma_1</dc:creator>
      <dc:date>2002-08-21T07:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/2790562#M79558</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Select a filename for your mail.&lt;BR /&gt;&lt;BR /&gt;Remove it at the start of the script.&lt;BR /&gt;&lt;BR /&gt;When the 100 limit is breached write your data to the file mentioned above&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;At the end of the script&lt;BR /&gt;&lt;BR /&gt;if [ -f file ]&lt;BR /&gt;then&lt;BR /&gt;elm -s xxxxxxxxxxxxx &amp;lt; file&lt;BR /&gt;/bin/rm file &lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;                     steve Steel</description>
      <pubDate>Wed, 21 Aug 2002 07:16:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/2790562#M79558</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2002-08-21T07:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/2790563#M79559</link>
      <description>My solution would be a variable and loop - ie &lt;BR /&gt;&lt;BR /&gt;MAIL=NO&lt;BR /&gt;while true&lt;BR /&gt;do&lt;BR /&gt;if [ $MAIL -eq "NO" ]&lt;BR /&gt;then&lt;BR /&gt;   if [ "extent check positive ?" ]&lt;BR /&gt;   then&lt;BR /&gt;   MAIL=YES&lt;BR /&gt;   "sendmail commands"&lt;BR /&gt;   exit&lt;BR /&gt;   fi&lt;BR /&gt;fi&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;So basically as soon as you find one extent over or equal to 100 then send the mail and set the MAIL variable to YES which would then exit the loop.&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Aug 2002 07:42:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script/m-p/2790563#M79559</guid>
      <dc:creator>Nick Wickens</dc:creator>
      <dc:date>2002-08-21T07:42:58Z</dc:date>
    </item>
  </channel>
</rss>

