Hello,
I am trying to write a bash script function to present the user a menu of options. The following is what I have so far:
function MainMenu {
while ]
do
echo "--------------------------------------------------------------------------------"
echo... (4 Replies)
I have a main menu
quit=n
while
do
clear
echo
echo "1. General system information"
echo "2. Hardware utilisation information"
echo "3. File management"
echo "4. User information"
echo "5. Information on network connectivity"
echo "6. Information on processes"
echo "Q.Quit" ... (3 Replies)
Greetings all,
I'm having some trouble writing a menu drive bash script, actually coding the menu part was not difficult however its a problem with a menu option I'm having trouble with.
My menu has 5 options, when the user selects the second option, they are then prompted to enter a number from... (5 Replies)
Dear Sir,
May I know how do I go about adding the following feature into the script below:
When user enter values other than 1,2,3,4,
a) Message “Wrong entry !!! Pls select 1,2,3 or 4” is displayed
b) The screen is cleared again and the menu is displayed.
#!/bin/bash
clear
var=1... (2 Replies)
Hi,
In the archives I found this:
And this works fine.
$if mode=vi
"\C-0-": digit-argument
TAB: menu-complete
"\e
But what I want is to reverse this. So I want that tab does reverse menu completion and shift tab does normal menu completion.
Can anyone help me with this? Thanks (0 Replies)
Hello,
Been trying to build a menu with whiptail lately. However, my code doesn't seems to be working even though when i compared to other similar code they looks the same.
#!/bin/bash
clear
whiptail --msgbox "Entering networking sub-menu" 20 78
whiptail --title Networking --menu... (8 Replies)
Ever since I added these two code blocks to my bash menu it just opens and closes right away. I use a batch file that worked fine until these codes were added and I am not sure what is wrong.
Basically, what I am trying to do in the additional section is if the answer is "Y" then it goes back... (13 Replies)
The perl command is not executing? I am trying to run the .pl in my cygwin home directory (C:\cygwin\home\cmccabe) using ${id}.txt.hg19_multianno.txt (located in the annovar directory) as the input file to be formatted and $FILENAME is the output file to be saved. The .pl is attached as... (8 Replies)
We have a simple menu with prompt of menu numbers to user.
It is still under construction.
Is there a way to "count" the menu choices so the prompt maximum count can be changed dynamically?
See attached TODO note in code
read_options(){
local choice
# the... (7 Replies)
Hi, I'm new to bash, and have an example menu script using Zenity. It works fine if the user enters A B or C, but if the user enters nothing, I can only figure out how to exit the script. How do I get the menu to reappear if no input is selected?
The script is:
title="Select example"... (2 Replies)
Discussion started by: allen11
2 Replies
LEARN ABOUT DEBIAN
install-menu
install-menu(1) Debian GNU/Linux manual install-menu(1)NAME
install-menu - Process a menu method and generate the menu files for a window manager or a menu-aware application.
DESCRIPTION update-menus(1) computes the list of menu entries and passes it in turn to the menu methods in /etc/menu-methods/. The task of a menu meth-
ods is to generate menus for a specific window manager. install-menu provides a generic and customizable way to do that. The documentation
of the install-menu definition language is available in the Debian Menu manual, a local copy being available in /usr/share/doc/menu/html.
SYNOPSIS
install-menu [-vh] [--remove] <menu-method>
Read menu entries from stdin in update-menus --stdout format and generate menu files using the specified menu-method.
Normally used in menu method scripts as #! /usr/bin/install-menu.
OPTIONS -h,--help
Show the help message and exit.
--remove
Remove the menu files instead of generating them.
-v,--verbose
Output messages about what the program is doing.
COPYING
install-menu is distributed under the term of the GNU General Public License version 2, or (at your option) any later version.
AUTHOR
Written by Joost Witteveen <joostje@debian.org>. Now maintained by Bill Allombert <ballombe@debian.org>.
SEE ALSO update-menus(1), menufile(5), /usr/share/doc/menu/html
Debian Project 28 November 2005 install-menu(1)