<?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: Scripting Question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/5280704#M474262</link>
    <description>&lt;!--!*#--&gt;Do you want a fish, or do you want to learn&lt;BR /&gt;how to catch a fish?&lt;BR /&gt;&lt;BR /&gt;You might start by asking Google (or any&lt;BR /&gt;other Web search engine) to look for keywords&lt;BR /&gt;like, say:&lt;BR /&gt;&lt;BR /&gt;      shell script gt lt&lt;BR /&gt;&lt;BR /&gt;That should find thousands of helpful&lt;BR /&gt;explanations and examples.</description>
    <pubDate>Wed, 27 Apr 2011 18:52:32 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2011-04-27T18:52:32Z</dc:date>
    <item>
      <title>Scripting Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/5280703#M474261</link>
      <description>I use "wc -l" with a command to give me the number of lines of application processes. If that line is less than a certain amount, I know the applicatio has a problem. How can I feed this number into a script that will act upon the number of lines? I know the -gt or -lt conditions are used, but as yet I dont how to make this work.</description>
      <pubDate>Wed, 27 Apr 2011 18:41:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/5280703#M474261</guid>
      <dc:creator>frederick hannah</dc:creator>
      <dc:date>2011-04-27T18:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/5280704#M474262</link>
      <description>&lt;!--!*#--&gt;Do you want a fish, or do you want to learn&lt;BR /&gt;how to catch a fish?&lt;BR /&gt;&lt;BR /&gt;You might start by asking Google (or any&lt;BR /&gt;other Web search engine) to look for keywords&lt;BR /&gt;like, say:&lt;BR /&gt;&lt;BR /&gt;      shell script gt lt&lt;BR /&gt;&lt;BR /&gt;That should find thousands of helpful&lt;BR /&gt;explanations and examples.</description>
      <pubDate>Wed, 27 Apr 2011 18:52:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/5280704#M474262</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2011-04-27T18:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/5280705#M474263</link>
      <description>&lt;!--!*#--&gt;&amp;gt; You might start [...]&lt;BR /&gt;&lt;BR /&gt;Or:&lt;BR /&gt;      shell script tutorial&lt;BR /&gt;or:&lt;BR /&gt;      shell script primer</description>
      <pubDate>Wed, 27 Apr 2011 18:54:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/5280705#M474263</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2011-04-27T18:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/5280706#M474264</link>
      <description>I prefer to crab or shrimp to be honest. I am using Google and I think I am getting close to an answer. Thanks</description>
      <pubDate>Wed, 27 Apr 2011 18:56:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/5280706#M474264</guid>
      <dc:creator>frederick hannah</dc:creator>
      <dc:date>2011-04-27T18:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting Question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/5280707#M474265</link>
      <description>&lt;!--!*#--&gt;BASE=/home/workarea&lt;BR /&gt;LOW_LIMIT=10 #lines&lt;BR /&gt;OUTFILE=/tmp/tmp_$$&lt;BR /&gt;PROG_LOG=$BASE/logs/plog.txt&lt;BR /&gt;&lt;BR /&gt;&lt;YOUR_PROGRAM&gt; tee -a $PROG_LOG \&lt;BR /&gt;| wc -l \&lt;BR /&gt;&amp;gt;$OUTFILE 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;# exit if error above&lt;BR /&gt;status=$?&lt;BR /&gt;if [ $status -ne 0 ];then&lt;BR /&gt;   echo "fail, done"&lt;BR /&gt;   exit;&lt;BR /&gt;fi&lt;BR /&gt;CURRENT_LINES=`cat $OUTFILE`&lt;BR /&gt;&lt;BR /&gt;if [ $CURRENT_LINES -lt $LOW_LIMIT ];then&lt;BR /&gt;   #go do something about it&lt;BR /&gt;else&lt;BR /&gt;   echo "success"&lt;BR /&gt;fi&lt;BR /&gt;&lt;/YOUR_PROGRAM&gt;</description>
      <pubDate>Thu, 28 Apr 2011 19:56:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-question/m-p/5280707#M474265</guid>
      <dc:creator>klb</dc:creator>
      <dc:date>2011-04-28T19:56:44Z</dc:date>
    </item>
  </channel>
</rss>

