Home » Infrastructure » Unix » Error message ' ' ' unmatched
Error message ' ' ' unmatched [message #301791] Thu, 21 February 2008 14:15 Go to next message
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 #301793 is a reply to message #301791] Thu, 21 February 2008 14:21 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10708
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
We have no idea what you are doing here.
Atleast use a code tags to format.

quote
ok_status=`echo $conc_request'

Just a guess.
Re: Error message ' ' ' unmatched [message #301795 is a reply to message #301793] Thu, 21 February 2008 14:29 Go to previous messageGo to next message
shree_z
Messages: 75
Registered: February 2008
Member
Did you mean to do this change?

Quote:
ok_status="echo $conc_request"

[Updated on: Thu, 21 February 2008 14:30]

Report message to a moderator

Re: Error message ' ' ' unmatched [message #301797 is a reply to message #301795] Thu, 21 February 2008 14:45 Go to previous messageGo to next message
shree_z
Messages: 75
Registered: February 2008
Member
Any thoughts?
Re: Error message ' ' ' unmatched [message #301800 is a reply to message #301797] Thu, 21 February 2008 15:04 Go to previous message
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

Previous Topic: Sending messages
Next Topic: error in shell scripting (merged)
Goto Forum:
  


Current Time: Thu Nov 21 23:04:32 CST 2024