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
Jifty::Web::Menu(3pm)					User Contributed Perl Documentation				     Jifty::Web::Menu(3pm)

NAME
Jifty::Web::Menu - Handle the API for menu navigation METHODS
new PARAMHASH Creates a new Jifty::Web::Menu object. Possible keys in the PARAMHASH are "label", "parent", "sort_order", "url", and "active". See the subroutines with the respective name below for each option's use. label [STRING] Sets or returns the string that the menu item will be displayed as. parent [MENU] Gets or sets the parent Jifty::Web::Menu of this item; this defaults to null. This ensures that the reference is weakened. raw_html [STRING] Sets the content of this menu item to a raw blob of HTML. When asked or output, rather than constructing a link, Jifty will return this raw content. No escaping is done. sort_order [NUMBER] Gets or sets the sort order of the item, as it will be displayed under the parent. This defaults to adding onto the end. link Gets or set a Jifty::Web::Form::Link object that represents this menu item. If you're looking to do complex ajaxy things with menus, this is likely the option you want. target [STRING] Get or set the frame or pseudo-target for this link. something like _blank class [STRING] Gets or sets the CSS class the link should have in addition to the default classes. This is only used if "link" isn't specified. render_children_inline [BOOLEAN] Gets or sets whether children are rendered inline as a menu "group" instead of a true submenu. Only used when rendering with YUI for now. Defaults to false. Note that YUI doesn't support rendering nested menu groups, so having direct parent/children render_children_inline is likely not going to do what you want or expect. url Gets or sets the URL that the menu's link goes to. If the link provided is not absolute (does not start with a "/"), then is is treated as relative to it's parent's url, and made absolute. active [BOOLEAN] Gets or sets if the menu item is marked as active. Setting this cascades to all of the parents of the menu item. child KEY [, PARAMHASH] If only a KEY is provided, returns the child with that KEY. Otherwise, creates or overwrites the child with that key, passing the PARAMHASH to "new" in Jifty::Web::Menu. Additionally, the paramhash's "label" defaults to the KEY, and the "sort_order" defaults to the pre-existing child's sort order (if a "KEY" is being over- written) or the end of the list, if it is a new "KEY". If the paramhash contains a key called "menu", that will be used instead of creating a new Jifty::Web::Menu. active_child Returns the first active child node, or "undef" is there is none. delete KEY Removes the child with the provided KEY. children Returns the children of this menu item in sorted order; as an array in array context, or as an array reference in scalar context. render_as_menu Render this menu with HTML markup as multiple dropdowns, suitable for an application's menu Any arguments are passed to render_as_hierarchical_menu_item. render_as_context_menu Render this menu with html markup as an inline dropdown menu. render_as_hierarchical_menu_item Render an <li> for this item. suitable for use in a regular or contextual menu. Currently renders one level of submenu, if it exists, using "render_submenu". If you pass "expand =" 0>, the javascript expansion "span" won't be output. Any arguments are passed to render_submenu. render_submenu Renders a <ul> for the children (but not descendants) of this menu object, suitable for use as part of a regular or contextual menu. Called by "render_as_hierarchical_menu_item". You probably don't need to use this on it's own. If passed "deep_active =" 1>, then it renders active descendants recursively all the way down. render_as_classical_menu Render this menu with html markup as old classical mason menu. Currently renders one level of submenu, if it exists. render_as_yui_menu [PARAMHASH] Render menu with YUI menu. It can support arbitrary levels of submenus. Valid options for the paramhash are as follows: id The HTML element ID to use for the menu show A boolean indicating whether to show the menu after rendering the HTML. Defaults to true. If you don't set this to true, you should use the button option (see below) or show the menu with Javascript like: YAHOO.widget.MenuManager.getMenu("menu-html-id").show(); button The ID of an HTML element. The element's onclick Javascript event is bound to a function which shows the menu. options A hashref of options passed directly to the Javascript constructor for the menu. See <http://developer.yahoo.com/yui/menu/#configreference> for a list of the options available. beforeshow A string of Javascript to run immediately before the menu is shown. The variable "menu" is available and represents the current YUI Menu object. render_as_yui_menubar Render menubar with YUI menu, suitable for an application's menu. It can support arbitrary levels of submenu. as_link Return this menu item as a Jifty::Web::Form::Link, either the one we were initialized with or a new one made from the "label" and "url" If there's no "url" and no "link", renders just the label. perl v5.14.2 2011-02-07 Jifty::Web::Menu(3pm)
All times are GMT -4. The time now is 10:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy