The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
script not working...select utility mobydick Shell Programming and Scripting 6 05-08-2008 07:33 AM
Extracting select queries from script DILEEP410 Shell Programming and Scripting 3 04-10-2008 11:16 AM
Select matches between line number and end of file? Jerrad Shell Programming and Scripting 4 05-24-2006 08:50 AM
awk to select a column from particular line number mab_arif16 Shell Programming and Scripting 4 05-08-2006 06:26 AM
Script to count unique number of user loged in elchalateco Shell Programming and Scripting 1 09-30-2002 12:32 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 03-11-2009
family_guy family_guy is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 11
script to ask the user to select a number

hi all,

I have 4 scripts which i would need to run
1. BP.sh
2.DB.sh
3.LK.sh
4.TB.sh

I would like write a script which would ask the user to select a number from 1-4 accordingly and run only that script for him/her

I succeeded till reading the user input but not sure how to run that specific file ( lets say if user puts 2, then i need to run ./DB.sh)

echo " Please enter any one of the following values and press Enter"
echo "1 for BP"
echo "2 for DB"
echo "3 for LK"
echo "4 for TB"
echo "Enter value:"
read mInputValue
if ( $minputvalue = 1)
then......

Thanks in advance...
 

Bookmarks

Tags
menu

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:41 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0