<?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 Shell Scripting: case command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripting-case-command/m-p/3305945#M881306</link>
    <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Here I am attaching some of the lines from one of the script file.&lt;BR /&gt;&lt;BR /&gt;case $returncode in&lt;BR /&gt;   0) echo " Instance on host $LOCAL_HOST started" | tee -a $LOGFILE;;&lt;BR /&gt;   1) echo " Instance already running"             | tee -a $LOGFILE;;&lt;BR /&gt;   *) echo " Startup of Instance failed"           | tee -a $LOGFILE&lt;BR /&gt;      printf " See $LOGFILE for details\n\n";;&lt;BR /&gt;esac              &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I would like to include the following line with in the case command under value 0. i.e. if the $returncode value is 0 the folllowing command line should also get executed.&lt;BR /&gt;&lt;BR /&gt;/oracle/PRD/TransLink30/verrfc -averrfc -gorion -xsapgw00 &amp;amp; &amp;gt;&amp;gt; $LOGFILE 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Nikee</description>
    <pubDate>Tue, 15 Jun 2004 14:47:19 GMT</pubDate>
    <dc:creator>Nikee Reddy</dc:creator>
    <dc:date>2004-06-15T14:47:19Z</dc:date>
    <item>
      <title>Shell Scripting: case command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripting-case-command/m-p/3305945#M881306</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Here I am attaching some of the lines from one of the script file.&lt;BR /&gt;&lt;BR /&gt;case $returncode in&lt;BR /&gt;   0) echo " Instance on host $LOCAL_HOST started" | tee -a $LOGFILE;;&lt;BR /&gt;   1) echo " Instance already running"             | tee -a $LOGFILE;;&lt;BR /&gt;   *) echo " Startup of Instance failed"           | tee -a $LOGFILE&lt;BR /&gt;      printf " See $LOGFILE for details\n\n";;&lt;BR /&gt;esac              &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I would like to include the following line with in the case command under value 0. i.e. if the $returncode value is 0 the folllowing command line should also get executed.&lt;BR /&gt;&lt;BR /&gt;/oracle/PRD/TransLink30/verrfc -averrfc -gorion -xsapgw00 &amp;amp; &amp;gt;&amp;gt; $LOGFILE 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Nikee</description>
      <pubDate>Tue, 15 Jun 2004 14:47:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripting-case-command/m-p/3305945#M881306</guid>
      <dc:creator>Nikee Reddy</dc:creator>
      <dc:date>2004-06-15T14:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Scripting: case command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripting-case-command/m-p/3305946#M881307</link>
      <description>Hi Nikee,&lt;BR /&gt;&lt;BR /&gt;I didn't understand your question well.&lt;BR /&gt;&lt;BR /&gt;Doesn't the following work?&lt;BR /&gt;&lt;BR /&gt;case $returncode in&lt;BR /&gt;&lt;BR /&gt;0)&lt;BR /&gt;&lt;BR /&gt;echo " Instance on host $LOCAL_HOST started" | tee -a $LOGFILE&lt;BR /&gt;&lt;BR /&gt;/oracle/PRD/TransLink30/verrfc -averrfc -gorion -xsapgw00 &amp;amp; &amp;gt;&amp;gt; $LOGFILE 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;;;&lt;BR /&gt;&lt;BR /&gt;1)&lt;BR /&gt;&lt;BR /&gt;..&lt;BR /&gt;&lt;BR /&gt;;;&lt;BR /&gt;&lt;BR /&gt;etc&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Jun 2004 14:54:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripting-case-command/m-p/3305946#M881307</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-06-15T14:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: Shell Scripting: case command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripting-case-command/m-p/3305947#M881308</link>
      <description>Unless I misunderstand the question, it would look like this:&lt;BR /&gt;&lt;BR /&gt;case $returncode in&lt;BR /&gt;0) echo " Instance on host $LOCAL_HOST started" | tee -a $LOGFILE&lt;BR /&gt;/oracle/PRD/TransLink30/verrfc -averrfc -gorion -xsapgw00 &amp;amp; &amp;gt;&amp;gt; $LOGFILE 2&amp;gt;&amp;amp;1;;&lt;BR /&gt;1) echo " Instance already running" | tee -a $LOGFILE;;&lt;BR /&gt;*) echo " Startup of Instance failed" | tee -a $LOGFILE&lt;BR /&gt;printf " See $LOGFILE for details\n\n";;&lt;BR /&gt;esac</description>
      <pubDate>Tue, 15 Jun 2004 14:55:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-scripting-case-command/m-p/3305947#M881308</guid>
      <dc:creator>Charlie Rubeor</dc:creator>
      <dc:date>2004-06-15T14:55:36Z</dc:date>
    </item>
  </channel>
</rss>

