LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-26-2009, 10:59 AM   #1
g4gopal@yahoo.com
LQ Newbie
 
Registered: Jan 2009
Posts: 1

Rep: Reputation: 0
Smile 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
 
Old 01-26-2009, 06:13 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,417
Blog Entries: 55

Rep: Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627
Maybe a select statement or 'dialog'?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with simple loop program in C Exsiss Programming 7 10-10-2007 06:48 AM
SSH Bash Loop m1ck Programming 7 01-31-2007 10:03 AM
having trouble with the do while loop in program mshinska Programming 2 10-08-2005 10:18 PM
C++ - Wondering why my program wont loop? eclipse75 Programming 2 03-27-2005 09:16 PM
while loop failure due to ssh hurny^ Programming 1 05-04-2004 03:00 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration