如果在一个OS下面创建多个实例,那么在今天这个OS的时候profile的设定该怎么选择呢?
在profile中加入以下内容:
#!/usr/bin/ksh
JOBFLG=
MENU()
{
clear
echo ""
echo "*TOP MENU"
echo "-------------------------------------------------"
echo " TEST DB : Please choose which DB "
echo "-------------------------------------------------"
echo " "
echo " A. XXXX"
echo " "
echo " B. YYYY"
echo " "
echo "-------------------------------------------------"
echo " Q. quit"
echo "-------------------------------------------------"
echo " Select Job => \c "
read JOBFLG
}
while MENU
do
case "$JOBFLG" in
[Aa])
. ~xxxxx/../xxxxx_profile
## exit 1 -- exit still on root ; break -- already go into user
break
;;
[Bb])
. ~yyyyy/../yyyyy_profile
break
;;
[Qq])
echo " "
echo "O.K :Good bye !!"
echo " "
exit 1
;;
esac
done
这样一来进入OS的时候会提示要进入那一个instance就不会盲目了。不同instance的profile弄个不同的吧
阅读(1567) | 评论(0) | 转发(0) |