Can I do this with Select or do I have to use tput or something else? Below is a snippet of my script so far...
I predefined the PS3 prompts since I use them frequently in the script and I wanted the menu to appear everytime the user needed to provide input (to remind them what they are inputing for). I tried redirecting the screen output of the Select line to /dev/null, but ksh has an issue with the ">".
I googled for an answer/hint but I did not have any luck.
Hi all
is menu driven by SELECT can be a dynamic ?
My requirement is that i want SELECT to be created on run time not predefine . The select should be created as per the no of
words in a file
thanks in advance
rawat (2 Replies)
Is there any way to implement a drop down menu selection in bash?
This is on CDLinux which is a very minimal live CD and I am using it to install an image onto a hard drive. Part of that process is the timezone selection. There are just too many timezones to attempt to use the "select" command.... (1 Reply)
is there a way I can make the menu list reappear when I use select ?
-----
menulist="Change_title Remove_tag Change_tag Add_line Quit"
select word in $menulist #change_title remove_tag change_tag add_line quit
do
case $word in
# first menu option Change Title
... (9 Replies)
Hello everyone.
I am using the select command to build a menu, here is my question:
Is it possible to generate a menu which contains several sections and have a separator between the sections without having a selection number generated in front of the separator?
This is a sample of what I would... (1 Reply)
Hi All,
I am trying to use the select command & the menu.
below mention is my script
#!/bin/bash
2
3 PS3="Is today your birthday? " #PS3 system variable
4
5 echo "\n"
6
7
8 select menu_selection in YES NO QUIT
9 do
10
11 ... (1 Reply)
Hi,
I am using a select in ksh for a script
#!/bin/ksh
FIRSTLIST='one two three four quit'
PS3='Please select a number: '
select i in $FIRSTLIST ;
do
case $i in
one) print 'this is one' ;;
two) print 'this is 2' ;;
three) print 'this is 3' ;;
four) print... (7 Replies)
Hi All,
I need to develop a bash script list “list of files” and able to select if any and set as globe variable in script and use for other function.
I would like to see in menu format.
Example out put
Below are the listed files for database clone
1. Sys.txt
2. abc.txt
3. Ddd.txt... (1 Reply)
Oracle Linux 5.6 64-bit
Given the below snippet
ORACLE_SID=''
PS3='Select target (test) database being refreshed: '
#
while ]; do
select ORACLE_SID in `egrep -i '^FS|^HR' /etc/oratab |\
awk -F\: '{print $1}'|sort` ; do
if ]; then
echo
echo "Please enter a... (19 Replies)
A lot of my scripting makes use of the 'select' command to create menu driven input. A typical example of how I use it is as:
somevar=''
PS3='Select one: '
while ]; do
select somevar in $(sqlplus -s $dbuser/$dbpw@mydb <<EOF
set echo off feedback off verify off... (7 Replies)
hi i am new to bash scripting ..
i created a bunch of folders but only want the folder names with file1. so i go in and make an array to grab the folders the put in a file then i strip the directories so i just have the folder names i need then i would like to make the menu with a selection... (3 Replies)
Discussion started by: lamby22
3 Replies
LEARN ABOUT LINUX
wxstatusbar
wxStatusBar(3erl) Erlang Module Definition wxStatusBar(3erl)NAME
wxStatusBar - See external documentation: wxStatusBar.
DESCRIPTION
See external documentation: wxStatusBar .
This class is derived (and can use functions) from:
wxWindow
wxEvtHandler
DATA TYPES
wxStatusBar() :
An object reference, The representation is internal and can be changed without notice. It can't be used for comparsion stored on disc
or distributed for use on other nodes.
EXPORTS
new() -> wxStatusBar()
See external documentation .
new(Parent::wxWindow() (see module wxWindow)) -> wxStatusBar()
Equivalent to new(Parent, []) .
new(Parent::wxWindow() (see module wxWindow), Options::[Option]) -> wxStatusBar()
Types Option = {winid, integer()} | {style, integer()}
See external documentation .
create(This::wxStatusBar(), Parent::wxWindow() (see module wxWindow)) -> bool()
Equivalent to create(This, Parent, []) .
create(This::wxStatusBar(), Parent::wxWindow() (see module wxWindow), Options::[Option]) -> bool()
Types Option = {winid, integer()} | {style, integer()}
See external documentation .
getFieldRect(This::wxStatusBar(), I::integer(), Rect::{X::integer(), Y::integer(), W::integer(), H::integer()}) -> bool()
See external documentation .
getFieldsCount(This::wxStatusBar()) -> integer()
See external documentation .
getStatusText(This::wxStatusBar()) -> string()
Equivalent to getStatusText(This, []) .
getStatusText(This::wxStatusBar(), Options::[Option]) -> string()
Types Option = {number, integer()}
See external documentation .
popStatusText(This::wxStatusBar()) -> ok
Equivalent to popStatusText(This, []) .
popStatusText(This::wxStatusBar(), Options::[Option]) -> ok
Types Option = {number, integer()}
See external documentation .
pushStatusText(This::wxStatusBar(), Text::string()) -> ok
Equivalent to pushStatusText(This, Text, []) .
pushStatusText(This::wxStatusBar(), Text::string(), Options::[Option]) -> ok
Types Option = {number, integer()}
See external documentation .
setFieldsCount(This::wxStatusBar(), Number::integer()) -> ok
Equivalent to setFieldsCount(This, Number, []) .
setFieldsCount(This::wxStatusBar(), Number::integer(), Options::[Option]) -> ok
Types Option = {widths, [integer()]}
See external documentation .
setMinHeight(This::wxStatusBar(), Height::integer()) -> ok
See external documentation .
setStatusText(This::wxStatusBar(), Text::string()) -> ok
Equivalent to setStatusText(This, Text, []) .
setStatusText(This::wxStatusBar(), Text::string(), Options::[Option]) -> ok
Types Option = {number, integer()}
See external documentation .
setStatusWidths(This::wxStatusBar(), Widths_field::[integer()]) -> ok
See external documentation .
setStatusStyles(This::wxStatusBar(), Styles::[integer()]) -> ok
See external documentation .
destroy(This::wxStatusBar()) -> ok
Destroys this object, do not use object again
AUTHORS
<>
wxErlang 0.98.9 wxStatusBar(3erl)