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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

command line access from a menu

Status
Not open for further replies.

madra

MIS
Feb 12, 2003
95
GB
I'm trying to add an option to our Ops bespoke menu (I'm not a great scripter!), whereby they can be given command line access. Similar to the F9 in smit.

How is this done ?

thanks in advance,

madra


I only ask stupid questions because I'm thick
 
How good is your operators' basic AIX training?
How good is your backup schedule? Tried and tested AND OK'd?
Generally a bad idea! I'd script around any shell activity your operators might need...

Something very basic:
Code:
while true
do
 tput clear
 echo "MENU
...
S for Shell
...
Choice? \c"
 typeset -u choice
 read choice
 case $choice in
  ...
  S*)
   echo "Use exit+ENTER or ctrl-D to return to menu"
   ksh
   ;;
 esac
done

HTH,

p5wizard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top