03-27-2015
Now that you mention it I don't think this is the correct approach. The
$( perl -ne...) allows me to run a use a batch file with the
perl script. But that's not what I'm trying to do so its back to the drawing board. Thank you
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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)
Discussion started by: ckoeber
4 Replies
2. Shell Programming and Scripting
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)
Discussion started by: AngelFlesh
3 Replies
3. Shell Programming and Scripting
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)
Discussion started by: Vitrophyre
5 Replies
4. Shell Programming and Scripting
Hi again :)
This is just a sample whiptail menu.
Works great, but have been trying to get the chosen value into a variable but failing pretty bad...its ther but unsure how to echo it out when needed
#! /bin/bash
#This is the menu
whiptail --title "Menu example" --menu "Choose an... (9 Replies)
Discussion started by: olearydc
9 Replies
5. UNIX for Dummies Questions & Answers
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)
Discussion started by: fusetrips
2 Replies
6. Red Hat
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)
Discussion started by: ozkanb
0 Replies
7. Shell Programming and Scripting
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)
Discussion started by: malfolozy
8 Replies
8. Shell Programming and Scripting
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)
Discussion started by: cmccabe
13 Replies
9. Shell Programming and Scripting
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)
Discussion started by: annacreek
7 Replies
10. Shell Programming and Scripting
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
ecaccess-queue-list
ECACCESS-QUEUE-LIST(1p) User Contributed Perl Documentation ECACCESS-QUEUE-LIST(1p)
NAME
ecaccess-queue-list - List available queues
SYNOPSIS
ecaccess-queue-list -version|-help|-manual
ecaccess-queue-list [-debug] [queue-name]
DESCRIPTION
Two different types of queues are in use with ECaccess:
1 - The ECaccess batch queues, which correspond to one system at ECMWF with its specific batch environment, e.g. ecgate will be the
ECaccess queue, which will redirect jobs to ecgate at ECMWF, running LoadLeveler. This ECaccess queue will be given as argument when
submitting a batch job.
2 - The batch queues (or classes) on the systems at ECMWF will be given in the batch job with #@ class = for LoadLeveler.
The names of the ECaccess queues and associated batch queues at ECMWF can be seen with this command. When an ECaccess queue-name is
specified then the details for this queue are displayed (including the list of classes).
The first ECaccess batch queue in the list is the default queue when submitting a batch job with the ecaccess-job-submit command.
ARGUMENTS
queue-name (optional)
The name of the ECaccess queue to retrieve the details.
OPTIONS
-version
Display version number and exits.
-help Print a brief help message and exits.
-manual Prints the manual page and exits.
-debug Display the SOAP messages exchanged.
EXAMPLES
ecaccess-queue-list
List all the ECaccess batch queues (or systems supporting job submission at ECMWF).
ecaccess-queue-list ecgate
List all the batch queues (or classes) on the ECMWF system ecgate.
SEE ALSO
ecaccess.
perl v5.14.2 2012-04-16 ECACCESS-QUEUE-LIST(1p)