<?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: MENU Options in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/menu-options/m-p/4447071#M682873</link>
    <description>&lt;!--!*#--&gt;Hi Syed:&lt;BR /&gt;&lt;BR /&gt;Your script is approaching this the hard way.&lt;BR /&gt;&lt;BR /&gt;One way is to Wrap things in a 'while true' loop like this:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;while true&lt;BR /&gt;do&lt;BR /&gt;  clear&lt;BR /&gt;  tput smso&lt;BR /&gt;  echo "Host: $(hostname). $(date "+%a %x %X %Z"). [ Available Functions ]"&lt;BR /&gt;  tput rmso&lt;BR /&gt;  echo "\n&amp;gt;&amp;gt;&amp;gt; Enter &amp;lt; 0 &amp;gt; to Exit"&lt;BR /&gt;  echo "\n&amp;gt;&amp;gt;&amp;gt; Enter &amp;lt; l &amp;gt; = x"&lt;BR /&gt;  echo "\n&amp;gt;&amp;gt;&amp;gt; Enter &amp;lt; 2 &amp;gt; = y"&lt;BR /&gt;  echo "\n&amp;gt;&amp;gt;&amp;gt; Enter &amp;lt; 3 &amp;gt; = z"&lt;BR /&gt;  echo "\n--&amp;gt; \c"&lt;BR /&gt;  read   CHOICE&lt;BR /&gt;  case ${CHOICE} in&lt;BR /&gt;    0 ) clear&lt;BR /&gt;        exit 0&lt;BR /&gt;        ;;&lt;BR /&gt;    1 ) ${HOME}/thing_1&lt;BR /&gt;        ;;&lt;BR /&gt;    2 ) ${HOME}/thing_2&lt;BR /&gt;        ;;&lt;BR /&gt;    3 ) ${HOME}/thing_3&lt;BR /&gt;        ;;&lt;BR /&gt;    "") continue&lt;BR /&gt;        ;;&lt;BR /&gt;    * )&lt;BR /&gt;        echo "\nInvalid selection; press return to continue \c"&lt;BR /&gt;        read BITBUCKET&lt;BR /&gt;        ;;&lt;BR /&gt;  esac&lt;BR /&gt;done&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;To exit the loop and continue the encapsulating script, a 'break' statement.  Otherwise after running a selected event, simply 'exit' to end the script.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Thu, 25 Jun 2009 10:54:01 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2009-06-25T10:54:01Z</dc:date>
    <item>
      <title>MENU Options</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/menu-options/m-p/4447068#M682870</link>
      <description>some options does not work through MENU, HP-UX11i like 7 and 9 to 14 onward&lt;BR /&gt;&lt;BR /&gt;kindly let me know &lt;BR /&gt;&lt;BR /&gt;thanks and regards&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Jun 2009 09:48:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/menu-options/m-p/4447068#M682870</guid>
      <dc:creator>Syed Muhammad Khurshid</dc:creator>
      <dc:date>2009-06-25T09:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: MENU Options</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/menu-options/m-p/4447069#M682871</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;You have mark # for option 7 .Check your script also there are no commands from 9 to 13 in your script then how it will work????&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Sunny</description>
      <pubDate>Thu, 25 Jun 2009 09:58:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/menu-options/m-p/4447069#M682871</guid>
      <dc:creator>Sunny123_1</dc:creator>
      <dc:date>2009-06-25T09:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: MENU Options</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/menu-options/m-p/4447070#M682872</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;In you script for 7 all code are hash marked thats the reasion 7 is not working&lt;BR /&gt;see this&lt;BR /&gt;&lt;BR /&gt;#if test $choice1 = '7'&lt;BR /&gt;#then &lt;BR /&gt;#clear &lt;BR /&gt;#read aaa&lt;BR /&gt;#cd /T24/baft24/tcserver/bin&lt;BR /&gt;#./TCServer.sh&lt;BR /&gt;#read aaa&lt;BR /&gt;#continue&lt;BR /&gt;#fi&lt;BR /&gt;&lt;BR /&gt;after 7 only 8, 14, 15 and 16 are there &lt;BR /&gt;8 and 16 is checking telnet to localhost with port 4501&lt;BR /&gt;&lt;BR /&gt;14 is showing bdf&lt;BR /&gt;&lt;BR /&gt;and 15 is doing break and exit see below things&lt;BR /&gt;&lt;BR /&gt;if test $choice1 = '15'&lt;BR /&gt;then &lt;BR /&gt;   clear &lt;BR /&gt;   break&lt;BR /&gt;exit &lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;Suraj&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Jun 2009 10:03:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/menu-options/m-p/4447070#M682872</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2009-06-25T10:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: MENU Options</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/menu-options/m-p/4447071#M682873</link>
      <description>&lt;!--!*#--&gt;Hi Syed:&lt;BR /&gt;&lt;BR /&gt;Your script is approaching this the hard way.&lt;BR /&gt;&lt;BR /&gt;One way is to Wrap things in a 'while true' loop like this:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;while true&lt;BR /&gt;do&lt;BR /&gt;  clear&lt;BR /&gt;  tput smso&lt;BR /&gt;  echo "Host: $(hostname). $(date "+%a %x %X %Z"). [ Available Functions ]"&lt;BR /&gt;  tput rmso&lt;BR /&gt;  echo "\n&amp;gt;&amp;gt;&amp;gt; Enter &amp;lt; 0 &amp;gt; to Exit"&lt;BR /&gt;  echo "\n&amp;gt;&amp;gt;&amp;gt; Enter &amp;lt; l &amp;gt; = x"&lt;BR /&gt;  echo "\n&amp;gt;&amp;gt;&amp;gt; Enter &amp;lt; 2 &amp;gt; = y"&lt;BR /&gt;  echo "\n&amp;gt;&amp;gt;&amp;gt; Enter &amp;lt; 3 &amp;gt; = z"&lt;BR /&gt;  echo "\n--&amp;gt; \c"&lt;BR /&gt;  read   CHOICE&lt;BR /&gt;  case ${CHOICE} in&lt;BR /&gt;    0 ) clear&lt;BR /&gt;        exit 0&lt;BR /&gt;        ;;&lt;BR /&gt;    1 ) ${HOME}/thing_1&lt;BR /&gt;        ;;&lt;BR /&gt;    2 ) ${HOME}/thing_2&lt;BR /&gt;        ;;&lt;BR /&gt;    3 ) ${HOME}/thing_3&lt;BR /&gt;        ;;&lt;BR /&gt;    "") continue&lt;BR /&gt;        ;;&lt;BR /&gt;    * )&lt;BR /&gt;        echo "\nInvalid selection; press return to continue \c"&lt;BR /&gt;        read BITBUCKET&lt;BR /&gt;        ;;&lt;BR /&gt;  esac&lt;BR /&gt;done&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;To exit the loop and continue the encapsulating script, a 'break' statement.  Otherwise after running a selected event, simply 'exit' to end the script.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 25 Jun 2009 10:54:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/menu-options/m-p/4447071#M682873</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-06-25T10:54:01Z</dc:date>
    </item>
  </channel>
</rss>

