![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| get_source[34]: 0403-057 Syntax error at line 66 : `"' is not matched. | vishal_ranjan | Shell Programming and Scripting | 1 | 05-15-2008 07:48 AM |
| 0403-027 The parameter list is too long. | romiljain | UNIX for Dummies Questions & Answers | 5 | 02-21-2008 08:52 PM |
| Script Error: 13192.sumr: 0403-016 Cannot find or open the file. | jgruenwald | Shell Programming and Scripting | 0 | 01-21-2008 12:08 PM |
| 0403-057 Syntax error at line 70. pls help | OMONI | UNIX for Dummies Questions & Answers | 2 | 07-20-2005 05:37 AM |
| getting error 0403-016 Cannot find or open the file while reading a long line | karthee | Shell Programming and Scripting | 2 | 06-05-2005 01:00 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hi Everybody, I am new to this group and also to the Unix shell scripting. I need some one to throw some light on this issue. I am not sure whats wrong in this script.When I execute this korn shell script it gives me an error 0403-057 Syntax error at line 28 : `<' is not matched. Code:
##############################Raj############################################
# Script to run the EDI_INBOUND PROGRAM #
# Reads the files that are in van_in folder #
# Dated : 05/02/2007 #
#############################################################################
#set -x
. $HOME/.profile
#############################################################################
CONTROLDIR=/u01/Raj
LOGDATE=`date +"%m%d%Y%H%M"`
LOGFILE=$CONTROLDIR/edi_$LOGDATE.log
INBOUND_DIR=/Raj/test/inbox
OUTBOUND_DIR=/Raj/test/inbox/archive
DBCONN=xxxx/xxxx@oracle
#############################################################################
cd $CONTROLDIR
#. ../env.init
cat /dev/null > $LOGFILE
cd $INBOUND_DIR
echo "=======================================================================" >>$LOGFILE
echo " EDI Process Log File Dated:`date +"%d/%h/%Y"` " >>$LOGFILE
echo "=======================================================================" >>$LOGFILE
for filename in $(echo * 2>/dev/null)
do
if (($(head -1 $filename | grep -e "006929681900" | wc -l) == 1));
then
1>>$LOGFILE 2>>$LOGFILE sqlplus -s $DBCONN <<EOF
whenever sqlerror exit 99
set serveroutput on
set feedback off
execute edi.process_edi('$filename');
exit
EOF
fi
done
I appreciate if I can get some real quick help on this bcoz i need to put this in production asap. Thanks, Raj. Last edited by reborg; 05-07-2007 at 09:19 AM.. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|