![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
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 |
| Display Modes | Rate This Thread |
|
|