Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

unexpected EOF while looking for matching `"'

Rajesh123Feb 3 2016 — edited Feb 3 2016

Hi all,

I am creating folders using unix shell script in application server.

DPETNO=`sqlplus -silent apps/pwd <<EOF

         SET PAGESIZE 0 FEEDBACK OFF VERIFY OFF HEADING OFF ECHO OFF

         select deptno from emp

         where deptno="$v_var";

      exit;

         EOF`

echo $DPETNO

DEPT="KT"

DNAME="SALE"

if [[ $DPETNO == 10 ]]

then

mkdir /u01/test/Sample/$COUNTRY_CODE/$CURRENT_YEAR/$CURRENT_MONTH

else

echo " Folder not created."

fi

if [[ $DPETNO == 20 ]]

then

if [[ ! -d /u01/test/Sample/$COUNTRY_CODE/$CURRENT_YEAR/$CURRENT_MONTH ]]

then

  mkdir /u01/test/Sample/$COUNTRY_CODE/$CURRENT_YEAR/$CURRENT_MONTH

fi

mkdir /u01/test/Sample/$COUNTRY_CODE/$CURRENT_YEAR/$CURRENT_MONTH/{$DEPT,$DNAME}

else

echo "error "

fi

But getting below error could you please help me.

unexpected EOF while looking for matching `"'

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 2 2016
Added on Feb 3 2016
9 comments
2,715 views