1834150 Members
2368 Online
110064 Solutions
New Discussion

menu creator

 
SOLVED
Go to solution
Mark VineGar
Occasional Contributor

menu creator

Is anyone aware of an HP-UX utility that generates menus? Is it a standard command or an application that needs to be installed? I remember hearing something about this years ago.
Thanks
Mark
Live Long And Prosper
3 REPLIES 3
James Specht
Trusted Contributor

Re: menu creator

You can create custom menus in sam and use restricted sam to grant access. Is that what you are looking for?

--Jim
"Everyone can be taught to sculpt: Michelangelo would have had to be taught how not to. So it is with the great programmers."
Pete Randall
Outstanding Contributor
Solution

Re: menu creator

Mark,

Possibly you're referring to the "select/case" construct. It goes something like this:

PS3="Enter your selection"
select blah in "blah1 blah2 blah3"
do
case $blah in
"blah1" )
do something
"blah2" )
do something else
"blah3" )
do some other thing
"Exit" )
echo exiting...
exit 0;;
* )
echo "Please try again"
esac
done


See the attached example.


Pete


Pete
Mark VineGar
Occasional Contributor

Re: menu creator

Yes. The SELECT was what I was referring to. Thanks a bunch Pete. I'll also look at the SAM option. Thanks James.
Live Long And Prosper