LinuxQuestions.org
Register a domain and help support LQ
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 07-09-2003, 12:51 PM   #1
ITJedi
LQ Newbie
 
Registered: Mar 2003
Location: AZ
Distribution: Red Hat 7.2, 7.3, 8.0
Posts: 13

Rep: Reputation: 0
Question Unexpected EOF Error???


I am trying to run the following script in Linux, but I am getting an unexpected error.

Here is the code:

#.BASH.PROFILE Variables
ORA="#Oracle Environment Variables"
ORA1="ORACLE_BASE=/home/oracle; export ORACLE_BASE"
ORA2="ORACLE_HOME=$ORACLE_BASE/product/8.1.7; export ORACLE_HOME"
ORA3="LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH"
ORA4="PATH=$ORACLE_HOME/bin:$PATH:/sbin; export PATH"
ORA5="ORACLE_SID=TEST6 ;EXPORT ORACLE_SID


#Adding Parameter changes to /home/oracle/.bash_profile
echo "Adding Parameter changes to /home/oracle/.bash_profile"
echo -e "$ORA" >> /home/oracle/.bash_profile
echo -e "$ORA1" >> /home/oracle/.bash_profile
echo -e "$ORA2" >> /home/oracle/.bash_profile
echo -e "$ORA3" >> /home/oracle/.bash_profile
echo -e "$ORA4" >> /home/oracle/.bash_profile
echo -e "$ORA5" >> /home/oracle/.bash_profile
echo "*done*"

Here is the error:

./or.sh: line 18: unexpected EOF while looking for matching `"'
./or.sh: line 19: syntax error: unexpected end of file

Any ideas why? This is just a small part of a larger script that was working, but in trouble shooting each part I got these errors.

Thanks for your help.
 
Old 07-09-2003, 01:03 PM   #2
TheLinuxDuck
Member
 
Registered: Sep 2002
Location: Tulsa, OK
Distribution: Slack, baby!
Posts: 349

Rep: Reputation: 33
The definition of ORA5 is missing the trailing ".

(=
 
Old 07-09-2003, 02:01 PM   #3
ITJedi
LQ Newbie
 
Registered: Mar 2003
Location: AZ
Distribution: Red Hat 7.2, 7.3, 8.0
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks! I knew it was something stupid like that, but when you are looking at it over and over again, you miss it.
 
  


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
G4U unexpected EOF jonax2k5 Linux - Software 1 11-16-2005 11:05 AM
Can anyone tell me what I need to do when running into a tar: Unexpected EOF error? schmootsypoo Linux - Software 2 09-03-2004 07:50 AM
Kernel 2.6.5 Compile Error unexpected EOF haimeltjnfg Linux - Software 4 05-14-2004 09:06 PM
Unexpected EOF in archive when install Gentoo 1.4 stage1 cirofren Linux - Distributions 1 11-06-2003 01:56 AM
tar: Unexpected EOF saavik Linux - Newbie 1 04-13-2002 02:13 AM


All times are GMT -5. The time now is 04:11 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration