Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dynamic SELECT

Status
Not open for further replies.

rawatds

Programmer
Jun 3, 2004
30
SG
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
 
Sorry, can you be more specific - perhaps give a pseudo code example of what you're trying to do?
 
Hi my requirement is :

1. Create a list of server names in a file
2. User would chose from the above list (to be displayed as a menu) and do the tasks as per server selected from the menu.
3. Switch-case should be flexible i.e if we delete or add any server name onto the above list it would add/delete the switch-case also(i.e. add/delete the link of the server from the menu)

in this case if the server name is excluded so it is also deleted from the menu

thankx in advance
rawat
 
Hi,
This sounds like a Home work assignment and Tek-Tips rules forbid helping with Home work.

Again WE can't do the assignment for you, but if you do the work and post it here maybe we can tell you where you went wrong.

---
 
A starting point:
select x in $(</path/to/file); do echo $REPLY,$x;break; done

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top