ssh program for a loop
Hello Guru's
I have written a program to install some software.
# test.sh
main menu
echo ""
echo ""
echo "1. linux
echo "2. Jre
echo "3. raid
echo "0. Exit the Installation."
echo " "
echo "Please select a value for further navigation....."
read UserOption
case $UserOption in
1) sh linux.sh;;
2) sh jre.sh;;
3) sh raid.sh;;
0) clear
echo "Application rolling back...."
sleep 1
echo "Good Bye."
exit;;
*) clear
echo "Option Invalid; Application is Reset....."
sleep 1
sh test.sh
esac
My question is linux.sh has some series of instructions which it is doing properly but i want the main menu too be displayed once it is done any ideas
my linux.sh
# linux.sh
clear
echo "Installing linux........................"
echo "Please wait ......................."
cd /tmp
mkdir linux
cd /tmp/linux
tar -xvf linux.tar
cd FILES
sh linux.sh
echo "to start manually, "
echo "run the command manuall at the shell prompt"
echo "/opt/linux/linuxstart"
sh test.sh
exit
any more ideas
thanks in advance.
- Gopala
|