LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Unexpected EOF Error??? (https://www.linuxquestions.org/questions/programming-9/unexpected-eof-error-71321/)

ITJedi 07-09-2003 12:51 PM

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.

TheLinuxDuck 07-09-2003 01:03 PM

The definition of ORA5 is missing the trailing ".

(=

ITJedi 07-09-2003 02:01 PM

Thanks! I knew it was something stupid like that, but when you are looking at it over and over again, you miss it.


All times are GMT -5. The time now is 01:33 PM.