<?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: How to create a operation Menu in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-a-operation-menu/m-p/3369613#M195429</link>
    <description>Ouups, &lt;BR /&gt;Good code is:&lt;BR /&gt;&lt;BR /&gt;affiche_menu&lt;BR /&gt;{&lt;BR /&gt;Your Menu (echo commands)&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;REP=1&lt;BR /&gt;while [ $REP != 0 ] &lt;BR /&gt;do&lt;BR /&gt;affiche_menu&lt;BR /&gt;read REP&lt;BR /&gt;case $REP in &lt;BR /&gt;1) Choix1;;&lt;BR /&gt;2) Choix2;;&lt;BR /&gt;....&lt;BR /&gt;0) echo "Bye Bye" ;;&lt;BR /&gt;esac&lt;BR /&gt;done&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 01 Sep 2004 03:04:11 GMT</pubDate>
    <dc:creator>BONNAFOUS Jean Marc</dc:creator>
    <dc:date>2004-09-01T03:04:11Z</dc:date>
    <item>
      <title>How to create a operation Menu</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-a-operation-menu/m-p/3369610#M195426</link>
      <description>Dear Experts,&lt;BR /&gt;  Any where I can find a template shell that use on creating menu window for operator using.&lt;BR /&gt;Example, &lt;BR /&gt;    In the Menu window have selection 1,2,3...to select to execute the job, select to view the log....etc. Exit &amp;amp; finish will close section of the terminal.&lt;BR /&gt;&lt;BR /&gt;Thks..</description>
      <pubDate>Wed, 01 Sep 2004 01:14:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-a-operation-menu/m-p/3369610#M195426</guid>
      <dc:creator>Kennethyap</dc:creator>
      <dc:date>2004-09-01T01:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a operation Menu</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-a-operation-menu/m-p/3369611#M195427</link>
      <description>Try the following script...&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;# The menu script&lt;BR /&gt;&lt;BR /&gt;while [ : ]&lt;BR /&gt;do&lt;BR /&gt;  echo Choose One:&lt;BR /&gt;  echo 1 Add file&lt;BR /&gt;  echo 2 Remove file&lt;BR /&gt;  echo 3 Edit file&lt;BR /&gt;  echo 4 View file&lt;BR /&gt;  echo 5 Quit&lt;BR /&gt;&lt;BR /&gt;  read i&lt;BR /&gt;&lt;BR /&gt;  if [ $? -eq 1 ]; then&lt;BR /&gt;    exit 0&lt;BR /&gt;  fi&lt;BR /&gt;&lt;BR /&gt;  case $i in&lt;BR /&gt;    1) exit 1;;&lt;BR /&gt;    2) exit 2;;&lt;BR /&gt;    3) exit 3;;&lt;BR /&gt;    4) exit 4;;&lt;BR /&gt;    5) exit 5;;&lt;BR /&gt;    *) &lt;BR /&gt;      echo&lt;BR /&gt;      echo Invalid choice.&lt;BR /&gt;      echo Try again.&lt;BR /&gt;      echo&lt;BR /&gt;      ;;&lt;BR /&gt;  esac&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;If you want multiple menus, you can duplicate this script for submenus.&lt;BR /&gt;&lt;BR /&gt;Greetings MB.</description>
      <pubDate>Wed, 01 Sep 2004 02:41:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-a-operation-menu/m-p/3369611#M195427</guid>
      <dc:creator>Marcel Boogert_1</dc:creator>
      <dc:date>2004-09-01T02:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a operation Menu</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-a-operation-menu/m-p/3369612#M195428</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Use a script shell. If you want to be sure to exit terminal session when you exit menu, tell the script from the .profile of operators accounts with exec command:&lt;BR /&gt;&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;exec Menu_Script &lt;BR /&gt;&lt;BR /&gt;exec command doesn't create a child environnement, but REPLACE current session. When you exit menu you exit session.&lt;BR /&gt;&lt;BR /&gt;Example of menu script:&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;affiche_menu&lt;BR /&gt;{&lt;BR /&gt;  Your Menu (echo commands)&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;REP=1&lt;BR /&gt;while [ $REP != 0 ] &lt;BR /&gt;do&lt;BR /&gt;  affiche_menu&lt;BR /&gt;  read REP&lt;BR /&gt;  case $REP in &lt;BR /&gt;    1) Choix1;;&lt;BR /&gt;    2) Choix2;;&lt;BR /&gt;    ....&lt;BR /&gt;    0) echo "Bye Bye" ;;&lt;BR /&gt;done&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds&lt;BR /&gt;JMB&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Sep 2004 02:55:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-a-operation-menu/m-p/3369612#M195428</guid>
      <dc:creator>BONNAFOUS Jean Marc</dc:creator>
      <dc:date>2004-09-01T02:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a operation Menu</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-a-operation-menu/m-p/3369613#M195429</link>
      <description>Ouups, &lt;BR /&gt;Good code is:&lt;BR /&gt;&lt;BR /&gt;affiche_menu&lt;BR /&gt;{&lt;BR /&gt;Your Menu (echo commands)&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;REP=1&lt;BR /&gt;while [ $REP != 0 ] &lt;BR /&gt;do&lt;BR /&gt;affiche_menu&lt;BR /&gt;read REP&lt;BR /&gt;case $REP in &lt;BR /&gt;1) Choix1;;&lt;BR /&gt;2) Choix2;;&lt;BR /&gt;....&lt;BR /&gt;0) echo "Bye Bye" ;;&lt;BR /&gt;esac&lt;BR /&gt;done&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Sep 2004 03:04:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-a-operation-menu/m-p/3369613#M195429</guid>
      <dc:creator>BONNAFOUS Jean Marc</dc:creator>
      <dc:date>2004-09-01T03:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a operation Menu</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-a-operation-menu/m-p/3369614#M195430</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;It's also possible to use builtin functions like "select" in posix shell (see man sh-posix). Example :&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;PS3="Your choice ? "&lt;BR /&gt;select A in MONDAY TUESDAY WEDNESDAY exit&lt;BR /&gt;do&lt;BR /&gt;  [ -z "$A" ] &amp;amp;&amp;amp; continue&lt;BR /&gt;  [ "$A" = exit ] &amp;amp;&amp;amp; break&lt;BR /&gt;  echo "My prefered day is $A (choice $REPLY)"&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Execution :&lt;BR /&gt;&lt;BR /&gt;phelix&amp;gt; /tmp/a&lt;BR /&gt;1) MONDAY&lt;BR /&gt;2) TUESDAY&lt;BR /&gt;3) WEDNESDAY&lt;BR /&gt;4) exit&lt;BR /&gt;Your choice ? 2&lt;BR /&gt;My prefered day is TUESDAY (choice 2)&lt;BR /&gt;Your choice ? 0&lt;BR /&gt;Your choice ? 4&lt;BR /&gt;phelix&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Regards.</description>
      <pubDate>Wed, 01 Sep 2004 06:12:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-a-operation-menu/m-p/3369614#M195430</guid>
      <dc:creator>Jean-Louis Phelix</dc:creator>
      <dc:date>2004-09-01T06:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a operation Menu</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-a-operation-menu/m-p/3369615#M195431</link>
      <description>Here's one, see attached.&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Wed, 01 Sep 2004 09:11:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-a-operation-menu/m-p/3369615#M195431</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2004-09-01T09:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a operation Menu</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-a-operation-menu/m-p/3369616#M195432</link>
      <description>Here is another one.  Hope it helps...</description>
      <pubDate>Wed, 01 Sep 2004 11:37:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-create-a-operation-menu/m-p/3369616#M195432</guid>
      <dc:creator>Amiel Tutolo</dc:creator>
      <dc:date>2004-09-01T11:37:50Z</dc:date>
    </item>
  </channel>
</rss>

