Hello,

There is a file (owned by root) under the /usr/local/bin on server A that points to all the different environments on the server. The developers’ logins reference this file so that they can get the proper environment sourced. We need to add training environment ( APPSORA.env) into that file
below is the script, please guide me

SELECT=$1

function menu {
cat< Please enter the number of the environment you wish to use:
[1] applp1 (sandbox mt)
[2] applp2 NOT USED
[3] applp3 (oradev)
[4] applp4 (project1 mt)
[5] applp5 (oratest mt)
[6] oraclep1 (sandbox db)
[7] oraclep2 NOT USED
[8] oraclep3 (oradev db)
[9] oraclep4 NOT USED
[10] oraclep5 NOT USED
[11] applp6 (project2 mt)
EOF
printf "---> "
}

while [ -z "$SSELECT" ]
do
menu
read SELECT
done

case "$SELECT" in
1) ACCT=applp1 ;;
applp1) ACCT=applp1 ;;
2) ACCT=applp2 ;;
applp2) ACCT=applp2 ;;
3) ACCT=applp3 ;;
applp3) ACCT=applp3 ;;
4) ACCT=applp4 ;;
applp4) ACCT=applp4 ;;
5) ACCT=applp5 ;;
applp5) ACCT=applp5 ;;
6) ACCT=oraclep1 ;;
oraclep1) ACCT=oraclep1 ;;
7) ACCT=oraclep2 ;;
oraclep2) ACCT=oraclep2 ;;
8) ACCT=oraclep3 ;;
oraclep3) ACCT=oraclep3 ;;
9) ACCT=oraclep4 ;;
oraclep4) ACCT=oraclep4 ;;
10) ACCT=oraclep5 ;;
oraclep5) ACCT=oraclep5 ;;
11) ACCT=applp6 ;;
applp6) ACCT=applp6 ;;
*) echo "invalid selection"
exit 1 ;;
esac

echo "Sourcing $ACCT"
. ~${ACCT}/.profile


How to do that ?

Thanks