Sponsored Content
Top Forums Shell Programming and Scripting Call one script option to other in shell script Post 302732135 by Yoda on Friday 16th of November 2012 04:31:47 PM
Old 11-16-2012
If you don't want to terminate script execution, then you have to use an infinite loop:-
Code:
while (true)
do
   # 1. Menu
   # 2. Menu
   # 3. Menu
   # 4. Exit 
done

So the script will run until user select option 4. You can Google for examples of shell script menu driven programs.
This User Gave Thanks to Yoda For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to call a perl script from a shell script

I have a perl script,Test.pl which needs arguments from command line like test.pl arg1 arg2 arg3 how can i call it from a shell script (2 Replies)
Discussion started by: anumkoshy
2 Replies

2. Shell Programming and Scripting

Call a perl script inside a shell script

Hi all, I have the following snippet of code.. #!/bin/sh echo "run perl script............" #Run the verification script perl bill_ver echo " perl script completed....." echo "rename files......" #Remove from all file in the directories test, test1, test2, test3 for f in... (3 Replies)
Discussion started by: chriss_58
3 Replies

3. Shell Programming and Scripting

call shell script from perl cgi script problem

hi,, i have perl scipt with line : system('./try.sh $t $d $m'); in shell scipt try.sh i have the line: echo $1 its not printing value of $t that i hav passed..y is it so..i am running it from apache web server (2 Replies)
Discussion started by: raksha.s
2 Replies

4. Shell Programming and Scripting

shell script to call perl script problems

Ok, don't ask me why, but all calls to perl must be called by a shell script. Its really not ideal, but its what I have to work with. Calling it isnt the issue, its passing in the arguments. I have about 1000 perl scripts to call by a shell script. Right now, I'm executing the shell script... (3 Replies)
Discussion started by: regexnub
3 Replies

5. Shell Programming and Scripting

call another shell script and pass parameters to that shell script

Hi, I basically have 2 shell scripts. One is a shell script will get the variable value from the user. The variable is nothing but the IP of the remote system. Another shell script is a script that does the job of connecting to the remote system using ssh. This uses a expect utility in turn. ... (2 Replies)
Discussion started by: sunrexstar
2 Replies

6. Shell Programming and Scripting

Call shell script function from awk script

hi everyone i am trying to do this bash> cat abc.sh deepak() { echo Deepak } deepak bash>./abc.sh Deepak so it is giving me write simply i created a func and it worked now i modified it like this way bash> cat abc.sh (2 Replies)
Discussion started by: aishsimplesweet
2 Replies

7. Shell Programming and Scripting

Script to call a menu script and redirect each option to a text file

Hello, I want to design a script that will call an existing menu script and select options one by one and redirict the out put to a file. For example;- In the script MENU.sh there are 10 options i want to design a script MENU2.sh that will select option 2 3 4 6 7 10 and redirict the output... (4 Replies)
Discussion started by: spradha
4 Replies

8. Shell Programming and Scripting

Shell script to call Oracle archive backup script when file system reaches threshold value

Hello All, I need immediate help in creating shell script to call archivebkup.ksh script when archive file system capacity reaches threshold value or 60% Need to identify the unique file system that reaches threshold value. ex: capacity ... (4 Replies)
Discussion started by: sasikanthdba
4 Replies

9. Shell Programming and Scripting

Call sql script from UNIX shell script

I know this question is out there in many forums, but I tried all the combinations in vain. I'm basically trying to call a sql script from a shell script. Below is my sql script (plsql.sql) DELCARE v_empno NUMBER := '&empno'; BEGIN select ename,sal from emp where empno = v_empno;... (3 Replies)
Discussion started by: FName_LName
3 Replies

10. UNIX for Beginners Questions & Answers

Shell script to call and sort awk script and output

I'm trying to create a shell script that takes a awk script that I wrote and a filename as an argument. I was able to get that done but I'm having trouble figuring out how to keep the header of the output at the top but sort the rest of the rows alphabetically. This is what I have now but it is... (1 Reply)
Discussion started by: Eric7giants
1 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 09:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy