Sponsored Content
Full Discussion: Menu driven using Ksh
Top Forums UNIX for Advanced & Expert Users Menu driven using Ksh Post 8480 by krishna on Friday 12th of October 2001 05:40:26 AM
Old 10-12-2001
Menu driven using Ksh

Hi Guys,

I would like to know how to write Menu driven programs
using ksh.

I have several script files 1.sh 2.sh 3.sh ...so on 25 files
I want to create a Menu which will calls submenus.

Main Menu

1. Data Entry

if you press 1 again submenu 1. Order entry
2. Customer Entry
3. Exit
if I Press Escape here it should go back to main menu
ctrl key to be trapped

2. Reports
3. Queries
4. Exit

If any one know it please mail me to:

::email removed::

Thanks & Regards
Krishna

Last edited by oombera; 02-20-2004 at 11:47 AM..
 

10 More Discussions You Might Find Interesting

1. Programming

menu driven ( like pine) on Linux

Hi guys, I am designing the rdbms in C/C++ on linux platform as my project. Can any one help me in designing menu driven screen (like the pine ) which will print on screen as follows 1) create table 2) add table ............. etc with arrow keys for... (2 Replies)
Discussion started by: amit
2 Replies

2. UNIX for Advanced & Expert Users

Menu Driven UNIX Admin

I need to have a script that can do an automated IPL function (how to reboot the box). I think ‘reboot’ would do the trick. However, how would I go about doing it, for example if the user states from a menu script that I would like to reboot now. The problem is when I do the ‘reboot’ command I... (6 Replies)
Discussion started by: ad4m88
6 Replies

3. Homework & Coursework Questions

Menu Driven Shell Script which accepts1 to 5 options

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: 1) Write a Menu Driven Shell Script which accepts1 to 5 options and performs the following actions for... (1 Reply)
Discussion started by: vaghya
1 Replies

4. Shell Programming and Scripting

Menu driven Script needed ..pls help

Hi Guys.. am new to unix scrpiting..I need a Menu need to create using shell scrpting eg: Food items ready paid if i press "f" need to add items for a file food items.. if i press "r" it need to move into ready and remove from food items if i press "p" need to update a filed in... (1 Reply)
Discussion started by: sasdua
1 Replies

5. UNIX for Dummies Questions & Answers

What is a menu or command line option driven script?

i'm confused what this means. i was asked to design a menu or command line option driven script that reads out of a DB and displays info such as read_data.pl -u <user> -e <event> which would print commands run by <user>with the <event> in the db. any suggestions? i've been using... (2 Replies)
Discussion started by: kpddong
2 Replies

6. Shell Programming and Scripting

Help needed in writing a menu driven script

Hi, I was wondering if someone could help me write a shell script in Linux that backsup/restores data to anywhere I choose but it needs to be menu driven? Thanks, I'm new to Linux/Unix but liking it so far...just hoping to get to grips with the scripts! :) (7 Replies)
Discussion started by: Nicole
7 Replies

7. Shell Programming and Scripting

Menu driven script.

I'm a beginner at scripting and have been putting this script together over the past week. It's no where as polish as it could be. Any tips/suggestions on improving this script would be appreciate it. Every week, my team develops WAR files in tomcat on our test environment and moves them to our... (4 Replies)
Discussion started by: bouncer
4 Replies

8. Shell Programming and Scripting

Use of stty vs trap in script-driven login menu

My employers would like me to selectively run one of several different (already-existing) Korn Shell menu-driven scripts out of the user's .profile file, depending on some yet-to-be-specified user critieria. I've never done this kind of thing, but I have the existing scripts (among other... (5 Replies)
Discussion started by: Clovis_Sangrail
5 Replies

9. UNIX for Dummies Questions & Answers

System administration tasks performed from a menu driven interface

I need to write a shell script that allows some system-administration tasks to be preformed automatically from a menu-driven interface. Automate the following tasks: • Copy directory tree • Delete files or directories • Output Information But I don't understand the question. What is a "menu... (2 Replies)
Discussion started by: femchi
2 Replies

10. Shell Programming and Scripting

Using menu driven script

Hi Team , I wrote a shell script for adding and subtracting two numbers am getting error could some one please help to fix it script: echo "Enter 1 to add:" echo "Enter 2 to sub:" echo "Enter 3 for both addition and subtraction :" read ans; case "$ans" in 1)... (4 Replies)
Discussion started by: knz
4 Replies
Menu(3I)						    InterViews Reference Manual 						  Menu(3I)

NAME
Menu, MenuItem, MenuBar, PopupMenu, PulldownMenu, PullrightMenu - menus SYNOPSIS
#include <InterViews/menu.h> DESCRIPTION
N.B.: This Menu class is completely different from the Menu class in version 2.5. No attempt has been made to be compatible, as this class and its subclasses are more powerful and easier to use than the original class. Menu is a subclass of Control that contains a scene of other controls, called its body. When a menu is opened, it inserts the body into the world with a drop shadow. The appearance of the menu itself is defined by its interactor component. For example, a menu in a menu bar might appear as ``File'' and insert a pulldown menu with commands such as ``Save'' when opened. MenuItem is a subclass of Control for defining the leaves of a menu hierarchy. Normally, an application will derive a command class from MenuItem and implement the virtual function Do as appropriate. One technique is to pass the Command an application object and pointer to member function; the Do function calls the member function on the application object. PopupMenu, PulldownMenu, and PullrightMenu are subclasses of Menu that implement a common styles of menus. MenuBar is a subclass of HBox that manages the control state associated with a set of menus. PopupMenu has no appearance; it is opened explicitly in response to an input event. PulldownMenu and PullrightMenu open the menu body below and to the right of the menu, respectively. These classes make it possible to use menus in an application without creating or passing control states explicitly. PUBLIC OPERATIONS
Menu::Menu(Interactor*) Construct a new menu. Menu::~Menu() The destructor deletes the menu body in addition to its appearance component. virtual void Menu::Include(Control*) Add an item to the menu. If no scene is specified, Menu will create a vbox and insert items into it. virtual void Menu::Popup(Event&) Insert the body into the world centered around the coordinates associated with the event and activate the controls in the body. The menu is removed from the world when the controls are deactivated (normally when a button is released). void Menu::SetBody(Interactor*) Interactor* Menu::GetBody() void Menu::SetAlign(Alignment) Alignment Menu::GetAlign() void Menu::SetDepth(int) int GetDepth() void Menu::SetBodyState(ControlState*) ControlState* Menu::GetBodyState() void Menu::SetScene(Scene*) Scene* Menu::GetScene() Set or get attributes of the menu. The depth of a menu is the number of pixels separating the body and the drop shadow. Coord Menu::InsertX() Coord Menu::InsertY() Return the coordinates where the menu's body was last inserted into the world. MenuItem::MenuItem(Interactor*) MenuItem::MenuItem(const char* str, Alignment = Left) Construct a new menu item. The second constructor defines the appearance of the item to be a message containing the text in str. PulldownMenu::PulldownMenu(Interactor*) PulldownMenu::PulldownMenu(const char* str) PullrightMenu::PullrightMenu(Interactor*) PullrightMenu::PullrightMenu(const char* str) Construct a new pulldown or pullright menu. The second constructor defines the appearance of the menu to be a message containing the text in str. PopupMenu::PopupMenu() Construct a new popup menu. MenuBar::MenuBar() Construct a new menu bar. virtual void MenuBar::Include(Control*) Add a control to a menu bar. In addition to inserting the control into the bar's hbox, this operation attaches the control to the bar's control state. SEE ALSO
Control(3I), Event(3I) InterViews 6 December 1989 Menu(3I)
All times are GMT -4. The time now is 04:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy