10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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)
Discussion started by: edstevens
7 Replies
2. Shell Programming and Scripting
Hi Guys,
Please pardon me if this is a silly question, but I have tried to find an answer and going through the man page and failed to get one. I have created a menu driven script with dialog --menu option. Everything is working as expeted, however, it seems that if I have more than 10... (1 Reply)
Discussion started by: ww889
1 Replies
3. Shell Programming and Scripting
can someone help me assign the selection of a drop down menu to a variable? the variable i need to store the selection in is inputA.
<form name="inputA">
<p align="center">
<p align="center">Name: <input name="inputA" type="text" size="45">
<select>
<?php
if ($handle =... (1 Reply)
Discussion started by: SkySmart
1 Replies
4. UNIX for Dummies Questions & Answers
Hi guys, i would like to create a program that allow user to show the information of certain thing such as network card.
I would like the menu to be dynamic, for example:
my computer system have 2 network card inserted at the moment, therefore the menu will have 2 choice for the user.
eth0... (12 Replies)
Discussion started by: malfolozy
12 Replies
5. Shell Programming and Scripting
I'm writing a shell script and have a problem with selection when I issue the command, is there a way to automatically choose a selection number one after a selection menue appear
Command
1-choice
2- choice
3-choice
Thanks
Sara (3 Replies)
Discussion started by: Sara_84
3 Replies
6. Shell Programming and Scripting
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)
Discussion started by: omerzzz
7 Replies
7. Linux
When I logon to my server with PuTTY I am forced into a selection menu with few options. How to I opt out of this menu to get to the home directory to view all of the files on the server?
Thanks for the help. :o (1 Reply)
Discussion started by: ksirimarco
1 Replies
8. Shell Programming and Scripting
Hi
I'm fairly new to unix and scripting (in BASH) and am here to post my first question.
What I'm trying to do is pipe a sorted listing (ls) to zenity and when the list appears to the user, the choice they choose is returned to a variable so it can be used in conditional statements.
I can... (2 Replies)
Discussion started by: Vayshan
2 Replies
9. Shell Programming and Scripting
Ok i have taken your advised indented my code and i have managed to fix my problem but unfortuantely now another small one has arisen.
The problem is that executing my commands requires two presses of the ENTER key as opposed to the originally being pressed once as one would expect, for example... (1 Reply)
Discussion started by: warlock129
1 Replies
10. Shell Programming and Scripting
Hi there all
I got the following
I got multiple arrays named for example
STAT_AAAA
STAT_AAAB
STAT_AAAC
STAT_AAAD
Now what I want I have chosen an option in a menu to select 1
but I dont want to write for all the same thing so I made it a signle one
now what I want is to get
STAT_ and... (6 Replies)
Discussion started by: draco
6 Replies