The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Where can I review the source code? Aaron Van UNIX for Dummies Questions & Answers 1 09-08-2007 03:58 AM
What's wrong with this code? mmignot Shell Programming and Scripting 3 11-08-2006 06:02 AM
Can some review my code would be appreicated? sibghat Shell Programming and Scripting 1 09-29-2005 04:51 PM
a piece of code, plz help to review anypager Shell Programming and Scripting 0 07-20-2005 03:28 AM
What is wrong with this code? Lem2003 UNIX for Dummies Questions & Answers 6 06-23-2003 01:04 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 07-28-2006
chrchcol chrchcol is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 36
Can someone review my code tell me where I am going wrong?

Started writing my code.

my read input is not even asking nor working?

And I get a EOF script error.


Code:
echo "1) aragorn.domain.net"
echo "2) marvel.domain.net"
echo "3) athena.domain.net"
echo "4) gandalf.domain.net"
echo "5) griffin.domain.net"

echo "What server would you like to connect to?(1-5)
read input

if [$input=1]
 then
ssh aragorn.domain.net
elif [$input=2]
 then

ssh marvel.domain.net

elif [$input=3]
 then
ssh athena.domain.net

elif [$input=4]
 then
ssh gandalf.domain.net

elif [$input=5]
 then
ssh griffin.domain.net
else
        echo"wrong choice"
fi

 

Bookmarks

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 07:14 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