Error message ' ' ' unmatched [message #301791] |
Thu, 21 February 2008 14:15 |
shree_z
Messages: 75 Registered: February 2008
|
Member |
|
|
Hi all,
I was trying to run this ksh script to call a concurrent program. its giving me error . Can anyone please advise
[color=purple]./ftnew1.sh[18]: syntax error at line 31 : ' '' unmatched[/color]
[color=blue]#!/bin/ksh
echo "=================================================="
echo "Beginning program " `date "+%m/%d/%y %H:%M:%S"` "\n"
echo "================================================="
#
datadir="path/data";
archdir="path/archive";
userid=apps
pwd=apps
respid=AR
respname='"Responsibility"'
ora_user=SYSADMIN
app_prog_name=AR
conc_prog_name=ARGFL
#
cd $datadir
ls -lrt *.txt | awk '{print $9}' | while read fname
do
echo The file to be passed to importing program is $fname
conc_request=`CONCSUB $userid/$pwd $respid $respname $ora_user WAIT=N
CONCURRENT $app_prog_name $conc_prog_name $fname 'Yes' 'Code' '0''ABCDEFGH''
echo "NEW concurrent request job details: $conc_request"
echo "New concurrent program submitted Request_id : $conc_id"
ok_status=`echo $conc_request'
echo "ok_status(1-Succesful, all other values-Not Successful) : $ok_status"
if [ $ok_status -eq 0 ]
then
echo "Program Unsuccessful. Check log file concurrent request: $conc_id "
v_status=1
else
mv $fname $archdir
v_status=0
fi
done
exit $v_status[/color]
Thanks in advance
[Updated on: Thu, 21 February 2008 14:17] by Moderator Report message to a moderator
|
|
|
|
|
|
Re: Error message ' ' ' unmatched [message #301800 is a reply to message #301797] |
Thu, 21 February 2008 15:04 |
|
Michel Cadot
Messages: 68716 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
Did you read what you posted and quoted Mahesh Rajendran?
Your line contains a back quote and a single quote, this is where you error comes from.
Now use single or double quotes depending on your needs.
And you should be aware this is an Oracle forum and not a Unix one.
So you should post your question in a more appropriate forum.
Regards
Michel
[Updated on: Thu, 21 February 2008 15:05] Report message to a moderator
|
|
|