- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: MENU Options
Operating System - HP-UX
1753798
Members
7322
Online
108805
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2009 02:48 AM
тАО06-25-2009 02:48 AM
MENU Options
some options does not work through MENU, HP-UX11i like 7 and 9 to 14 onward
kindly let me know
thanks and regards
kindly let me know
thanks and regards
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2009 02:58 AM
тАО06-25-2009 02:58 AM
Re: MENU Options
Hi
You have mark # for option 7 .Check your script also there are no commands from 9 to 13 in your script then how it will work????
Regards
Sunny
You have mark # for option 7 .Check your script also there are no commands from 9 to 13 in your script then how it will work????
Regards
Sunny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2009 03:03 AM
тАО06-25-2009 03:03 AM
Re: MENU Options
Hi,
In you script for 7 all code are hash marked thats the reasion 7 is not working
see this
#if test $choice1 = '7'
#then
#clear
#read aaa
#cd /T24/baft24/tcserver/bin
#./TCServer.sh
#read aaa
#continue
#fi
after 7 only 8, 14, 15 and 16 are there
8 and 16 is checking telnet to localhost with port 4501
14 is showing bdf
and 15 is doing break and exit see below things
if test $choice1 = '15'
then
clear
break
exit
fi
Suraj
In you script for 7 all code are hash marked thats the reasion 7 is not working
see this
#if test $choice1 = '7'
#then
#clear
#read aaa
#cd /T24/baft24/tcserver/bin
#./TCServer.sh
#read aaa
#continue
#fi
after 7 only 8, 14, 15 and 16 are there
8 and 16 is checking telnet to localhost with port 4501
14 is showing bdf
and 15 is doing break and exit see below things
if test $choice1 = '15'
then
clear
break
exit
fi
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2009 03:54 AM
тАО06-25-2009 03:54 AM
Re: MENU Options
Hi Syed:
Your script is approaching this the hard way.
One way is to Wrap things in a 'while true' loop like this:
#!/usr/bin/sh
while true
do
clear
tput smso
echo "Host: $(hostname). $(date "+%a %x %X %Z"). [ Available Functions ]"
tput rmso
echo "\n>>> Enter < 0 > to Exit"
echo "\n>>> Enter < l > = x"
echo "\n>>> Enter < 2 > = y"
echo "\n>>> Enter < 3 > = z"
echo "\n--> \c"
read CHOICE
case ${CHOICE} in
0 ) clear
exit 0
;;
1 ) ${HOME}/thing_1
;;
2 ) ${HOME}/thing_2
;;
3 ) ${HOME}/thing_3
;;
"") continue
;;
* )
echo "\nInvalid selection; press return to continue \c"
read BITBUCKET
;;
esac
done
...
To exit the loop and continue the encapsulating script, a 'break' statement. Otherwise after running a selected event, simply 'exit' to end the script.
Regards!
...JRF...
Your script is approaching this the hard way.
One way is to Wrap things in a 'while true' loop like this:
#!/usr/bin/sh
while true
do
clear
tput smso
echo "Host: $(hostname). $(date "+%a %x %X %Z"). [ Available Functions ]"
tput rmso
echo "\n>>> Enter < 0 > to Exit"
echo "\n>>> Enter < l > = x"
echo "\n>>> Enter < 2 > = y"
echo "\n>>> Enter < 3 > = z"
echo "\n--> \c"
read CHOICE
case ${CHOICE} in
0 ) clear
exit 0
;;
1 ) ${HOME}/thing_1
;;
2 ) ${HOME}/thing_2
;;
3 ) ${HOME}/thing_3
;;
"") continue
;;
* )
echo "\nInvalid selection; press return to continue \c"
read BITBUCKET
;;
esac
done
...
To exit the loop and continue the encapsulating script, a 'break' statement. Otherwise after running a selected event, simply 'exit' to end the script.
Regards!
...JRF...
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP