<?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: Need a Perl script for checking the boundary values in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/need-a-perl-script-for-checking-the-boundary-values/m-p/4228554#M687571</link>
    <description>&lt;!--!*#--&gt;Hmmm,&lt;BR /&gt;&lt;BR /&gt;The 'input file'..&lt;BR /&gt;Is that to be interpreted, or are those just the rules to be coded up once?&lt;BR /&gt;If interpretted...&lt;BR /&gt;This feels more like 'work' to be done for a fee, rather then friendly advice.&lt;BR /&gt;&lt;BR /&gt;But in case someone is nice enough to try to help, please be ready to provide aditional input.&lt;BR /&gt;- What is the quality and quantity of the rules to be ready for?&lt;BR /&gt;- How may?&lt;BR /&gt;- How complex?&lt;BR /&gt;- Which 'formulas' SUM only?&lt;BR /&gt;- Which variables? Just those listed?&lt;BR /&gt;- What values? Integer, Floating Point? Text? Date &amp;amp; Time?&lt;BR /&gt;&lt;BR /&gt;The "test data":&lt;BR /&gt;Just one set, or a lists of them&lt;BR /&gt;How delimited? Always all measurement present? Always in the same order (such that the script and look at say 'Measure4' and know all data has been seen?&lt;BR /&gt;&lt;BR /&gt;The flip/flop between Measure3 and Measure4&lt;BR /&gt;is very nasty... Is Measure3 allowed to be zero or negative? According to the current rules it can be. That "comma" after Value&amp;gt;0 for Measure3, is that an AND or OR?&lt;BR /&gt;&lt;BR /&gt;You may be able to make an awk or perl script clear and clean enough to make the specification be the program?&lt;BR /&gt;&lt;BR /&gt;The followin awk script may, or might not do what you request.&lt;BR /&gt;&lt;BR /&gt;/Measure1/ { Measure1 = value = $2;&lt;BR /&gt;             print "value&amp;gt;0",&lt;BR /&gt;"Measure1",        (value&amp;gt;0)? "\"Passed\"" : "\"Failed\""&lt;BR /&gt;           }&lt;BR /&gt;&lt;BR /&gt;/Measure2/ { Measure2 = value = $2;&lt;BR /&gt;             print "value&amp;gt;0 and Value&amp;lt;100",&lt;BR /&gt;"Measure2",        (value&amp;gt;0  &amp;amp;&amp;amp; value&amp;lt;100)?  "\"Passed\"" : "\"Failed\""&lt;BR /&gt;           }&lt;BR /&gt;&lt;BR /&gt;/Measure3/ { Measure3 = value = $2;&lt;BR /&gt;           }&lt;BR /&gt;&lt;BR /&gt;/Measure4/ { Measure4 = $2; value = Measure3;&lt;BR /&gt;             print "Value&amp;gt;0,Value(Measure 1+ Measure 2 + Measure 3)&amp;lt; Measure4",&lt;BR /&gt;&lt;BR /&gt;"Measure3",        (value&amp;gt;0  &amp;amp;&amp;amp;  (Measure1 + Measure2 + Measure3)  &amp;lt; Measure4)? "\"Passed\"" : "\"Failed\""&lt;BR /&gt;           }&lt;BR /&gt;&lt;BR /&gt;It works for me:&lt;BR /&gt;&lt;BR /&gt;$ awk -f x.awk x&lt;BR /&gt;value&amp;gt;0 Measure1 "Passed"&lt;BR /&gt;value&amp;gt;0 and Value&amp;lt;100 Measure2 "Failed"&lt;BR /&gt;Value&amp;gt;0,Value(Measure 1+ Measure 2 + Measure 3)&amp;lt; Measure4 Measure3 "Passed"&lt;BR /&gt;&lt;BR /&gt;fwiw,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Sun, 06 Jul 2008 23:20:13 GMT</pubDate>
    <dc:creator>Hein van den Heuvel</dc:creator>
    <dc:date>2008-07-06T23:20:13Z</dc:date>
    <item>
      <title>Need a Perl script for checking the boundary values</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-a-perl-script-for-checking-the-boundary-values/m-p/4228553#M687570</link>
      <description>Need a Perl script for checking the condition's for each measure value from the test data. Perl script should read from the input file for each measure and check the condition from the test data and give appropriate results saying "Passed" or Failed&lt;BR /&gt;if the condition is satisfied then it is "Passed" else "Failed"&lt;BR /&gt;&lt;BR /&gt;Input file:&lt;BR /&gt;&lt;BR /&gt;1.Measure1 value&amp;gt;0&lt;BR /&gt;2.Measure2  Value&amp;gt;0 and Value&amp;lt;100&lt;BR /&gt;3.Measure3 Value&amp;gt;0,Value(Measure 1+ Measure 2 + Measure 3)&amp;lt; Measure4&lt;BR /&gt;&lt;BR /&gt;Test data:&lt;BR /&gt;Measure1 100&lt;BR /&gt;Measure2 120&lt;BR /&gt;Measure3 50&lt;BR /&gt;Measure4 300&lt;BR /&gt;&lt;BR /&gt;Result:&lt;BR /&gt;&lt;BR /&gt;1.Measure1 value&amp;gt;0    " Passed"&lt;BR /&gt;2.Measure2  Value&amp;gt;0 and Value&amp;lt;100  "Failed"&lt;BR /&gt;3.Measure3 Value&amp;gt;0,Value(Measure 1+ Measure 2 + Measure 3)&amp;lt; Measure4  "Passed"&lt;BR /&gt;&lt;BR /&gt;Thanks in adavance&lt;BR /&gt;Kumar&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 06 Jul 2008 22:01:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-a-perl-script-for-checking-the-boundary-values/m-p/4228553#M687570</guid>
      <dc:creator>kumar143</dc:creator>
      <dc:date>2008-07-06T22:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Need a Perl script for checking the boundary values</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-a-perl-script-for-checking-the-boundary-values/m-p/4228554#M687571</link>
      <description>&lt;!--!*#--&gt;Hmmm,&lt;BR /&gt;&lt;BR /&gt;The 'input file'..&lt;BR /&gt;Is that to be interpreted, or are those just the rules to be coded up once?&lt;BR /&gt;If interpretted...&lt;BR /&gt;This feels more like 'work' to be done for a fee, rather then friendly advice.&lt;BR /&gt;&lt;BR /&gt;But in case someone is nice enough to try to help, please be ready to provide aditional input.&lt;BR /&gt;- What is the quality and quantity of the rules to be ready for?&lt;BR /&gt;- How may?&lt;BR /&gt;- How complex?&lt;BR /&gt;- Which 'formulas' SUM only?&lt;BR /&gt;- Which variables? Just those listed?&lt;BR /&gt;- What values? Integer, Floating Point? Text? Date &amp;amp; Time?&lt;BR /&gt;&lt;BR /&gt;The "test data":&lt;BR /&gt;Just one set, or a lists of them&lt;BR /&gt;How delimited? Always all measurement present? Always in the same order (such that the script and look at say 'Measure4' and know all data has been seen?&lt;BR /&gt;&lt;BR /&gt;The flip/flop between Measure3 and Measure4&lt;BR /&gt;is very nasty... Is Measure3 allowed to be zero or negative? According to the current rules it can be. That "comma" after Value&amp;gt;0 for Measure3, is that an AND or OR?&lt;BR /&gt;&lt;BR /&gt;You may be able to make an awk or perl script clear and clean enough to make the specification be the program?&lt;BR /&gt;&lt;BR /&gt;The followin awk script may, or might not do what you request.&lt;BR /&gt;&lt;BR /&gt;/Measure1/ { Measure1 = value = $2;&lt;BR /&gt;             print "value&amp;gt;0",&lt;BR /&gt;"Measure1",        (value&amp;gt;0)? "\"Passed\"" : "\"Failed\""&lt;BR /&gt;           }&lt;BR /&gt;&lt;BR /&gt;/Measure2/ { Measure2 = value = $2;&lt;BR /&gt;             print "value&amp;gt;0 and Value&amp;lt;100",&lt;BR /&gt;"Measure2",        (value&amp;gt;0  &amp;amp;&amp;amp; value&amp;lt;100)?  "\"Passed\"" : "\"Failed\""&lt;BR /&gt;           }&lt;BR /&gt;&lt;BR /&gt;/Measure3/ { Measure3 = value = $2;&lt;BR /&gt;           }&lt;BR /&gt;&lt;BR /&gt;/Measure4/ { Measure4 = $2; value = Measure3;&lt;BR /&gt;             print "Value&amp;gt;0,Value(Measure 1+ Measure 2 + Measure 3)&amp;lt; Measure4",&lt;BR /&gt;&lt;BR /&gt;"Measure3",        (value&amp;gt;0  &amp;amp;&amp;amp;  (Measure1 + Measure2 + Measure3)  &amp;lt; Measure4)? "\"Passed\"" : "\"Failed\""&lt;BR /&gt;           }&lt;BR /&gt;&lt;BR /&gt;It works for me:&lt;BR /&gt;&lt;BR /&gt;$ awk -f x.awk x&lt;BR /&gt;value&amp;gt;0 Measure1 "Passed"&lt;BR /&gt;value&amp;gt;0 and Value&amp;lt;100 Measure2 "Failed"&lt;BR /&gt;Value&amp;gt;0,Value(Measure 1+ Measure 2 + Measure 3)&amp;lt; Measure4 Measure3 "Passed"&lt;BR /&gt;&lt;BR /&gt;fwiw,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 06 Jul 2008 23:20:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-a-perl-script-for-checking-the-boundary-values/m-p/4228554#M687571</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-07-06T23:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need a Perl script for checking the boundary values</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-a-perl-script-for-checking-the-boundary-values/m-p/4228555#M687572</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;I'm of the same mind aa Hein: "This feels more like 'work' to be done for a fee, rather then friendly advice."&lt;BR /&gt;&lt;BR /&gt;So, that said, send $$$ or at least show us *what* you have tried and *where* you are stuck.  Aret you are looking for a platform agnostic solution (?) or is it that this is really a piece that you need to add to an existing piece of Perl code; hence the language-specific request?&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 06 Jul 2008 23:28:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-a-perl-script-for-checking-the-boundary-values/m-p/4228555#M687572</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-07-06T23:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: Need a Perl script for checking the boundary values</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-a-perl-script-for-checking-the-boundary-values/m-p/4228556#M687573</link>
      <description>&amp;gt;Need a Perl script for checking the conditions for each measure value from the test data. Perl script should read from the input file for each measure&lt;BR /&gt;&lt;BR /&gt;As Hein and JRF mention, it seems you are trying to write a general purpose expression interpreter.  I've seen something like this for glance's filters in displaying data.&lt;BR /&gt;If not trying to evaluation random user input, it might be easy to just write your 4 programs.&lt;BR /&gt;&lt;BR /&gt;Unfortunately neither awk (or perl?) have an eval operator to interpret expressions.</description>
      <pubDate>Sun, 06 Jul 2008 23:59:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-a-perl-script-for-checking-the-boundary-values/m-p/4228556#M687573</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-07-06T23:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Need a Perl script for checking the boundary values</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-a-perl-script-for-checking-the-boundary-values/m-p/4228557#M687574</link>
      <description>The awk suggestion I made is a little 'cute' in that the decision text, closely matched the decision code.&lt;BR /&gt;But this is only seen in a fixed-font.&lt;BR /&gt;So here is it again, attached as a text file.&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Jul 2008 02:17:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-a-perl-script-for-checking-the-boundary-values/m-p/4228557#M687574</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-07-07T02:17:53Z</dc:date>
    </item>
  </channel>
</rss>

