Hi folks.
I'm trying to install Midtier 7.1 patch 7 on a solaris box. The install script 
mt_install stops with syntax error after I answer the prompt about where to 
install midtier:
./mt_install_new: syntax error at line 1: `)' unexpected

I have tried this 3 times to make sure my responses to prompts at this point or 
prior are not the cause, but I get the same result.

Anybody seen this? If you warm up at the sight of unix shell scripts, please 
read on.

-----------------------------
My shell is: GNU bash, version 2.05.0(1)

I ran the mt_install script with "set -x" and this is what I see:

+ CheckSpace ARS_ROOT 120000 
CSA=ARS_ROOT
CSB=120000
also=already
+ eval CHECKDIR=$ARS_ROOT 
CHECKDIR=/www/apps/tomcat5/remedy/mid-tier
ORIGINAL_DIR=/www/apps/tomcat5/remedy/mid-tier
+ GetAvail DISK_AVAIL /www/apps/tomcat5/remedy/mid-tier 
+ [ -d /www/apps/tomcat5/remedy/mid-tier ] 
+ [ 0 -eq 1 ] 
+ [ 0 -eq 1 -o 0 -eq 1 ] 
+ [ 1 -eq 1 -o 0 -eq 1 ] 
LC_ALL=C
LANG=C
+ awk -F  {print $1}+ df /www/apps/tomcat5/wwwapptest/remedy/mid-tier 
+ tr -d \012 
+ egrep -vi Filesystem 
 
+ awk -F: {print $2 } 
+ eval DISK_AVAIL=/vol/viv0/tradapp) 
./mt_install_new: syntax error at line 1: `)' unexpected


Note this part:
+ eval DISK_AVAIL=/vol/viv0/tradapp)

There is an extra ")" at the end.

The code in question is this:
eval DISK_AVAIL=`LC_ALL=C; LANG=C; df /www/apps/tomcat5/remedy/mid-tier 2> 
/dev/null | egrep -vi "Filesystem" | tr -d '\012' | awk -F':' '{print $2 }' | 
awk -F' ' '{print $1}'`

It's basically trying to find out what is the partition where the directory I 
specified resides.

This part on shell prompt works fine:
$ echo `LC_ALL=C; LANG=C; df /www/apps/tomcat5/remedy/mid-tier 2> /dev/null | 
egrep -vi "Filesystem" | tr -d '\012' | awk -F':' '{print $2 }' | awk -F' ' 
'{print $1}'`
/vol/viv0/tradapp

See the partition info displayed correctly without the extra "("

This works too:
$ eval aa=`LC_ALL=C; LANG=C; df /www/apps/tomcat5/wwwapptest/remedy/mid-tier 2> 
/dev/null | egrep -vi "Filesystem" | tr -d '\012' | awk -F':' '{print $2 }' | 
awk -F' ' '{print $1}'`
$ echo $aa
/vol/viv0/tradapp

See the last line. Working fine.

Where does the extra ")" come from in the script?

I will do the install by editing the script, but what's going on here??


      

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor:[email protected] ARSlist: "Where the Answers Are"

Reply via email to