0403-057 Syntax Error At Line
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business 0403-057 syntax error : `>' is not expected Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation 0403 057 syntax error is not matched Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just
Ksh: 0403-057 Syntax Error At Line 1 : `(' Is Not Expected.
like you, helping each other. Join them; it only takes a minute: Sign up 0403-057 Syntax error: `;' is not expected up vote 0 down vote favorite if [ -d patch/tempatch ]; then; cd patch/tempatch/; for i in
0403-057 `(' Is Not Expected
`ls`; do; tar -xvf $i; rm -f $i; done; for i in `ls`; do; cd $i; cp -R files/* patch/SP02JUL11/files/; cd ..; rm -Rf $i; done; else; echo "directory not found"; fi All the commands in single line by separating with ";" While executing it throws 0403-057 Syntax error: ; is not expected can anyone help on this ? Thank you unix unix-domain-sockets share|improve this question edited Mar 27 '14 at 10:21 Abhineet 3,789936 asked syntax error: `(' is not expected Mar 27 '14 at 10:16 user3468019 312 First good step would be to indent the code. I am sure then it will be pretty easy to find out where the problem is. –fedorqui Mar 27 '14 at 10:17 if you have created code in Windows, and moved to linux, do dos2unix myScript. Good luck. –shellter Mar 27 '14 at 11:32 I am writing caode in java and executing in UNIX system –user3468019 Mar 27 '14 at 11:38 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote accepted It's not specified which shell is interpereting this script... From error code I assume it's ksh... From the error message, I presume that the problem is that after then, else, do, ksh does not accept a ;. However, just out of curiosity, I did just install ksh on my linux box. It's at version "93u+ 2012-08-01". Your script runs just fine, no syntax errors, here... Probably you are running a different (possibly older) version of the shell, or a different shell at all... You should definitely specify which shell you're using... :-). share|improve this answer edited Mar 28 '14 at 8:39 answered Mar 27 '14 at 10:25 MarcoS 6,617114895 i am using ksh shell only –user3468019 Mar 27 '14 at 11:19
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the
0403-057 Syntax Error At Line Is Not Matched
workings and policies of this site About Us Learn more about ksh 0403 057 syntax error is not matched Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions 0403 057 syntax error then is not matched Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. http://stackoverflow.com/questions/22684462/0403-057-syntax-error-is-not-expected Join them; it only takes a minute: Sign up 0403-057 Syntax error at line 54: `(' is not expected up vote 0 down vote favorite arr=(`${ORACLE_HOME}/bin/sqlplus -s "${user}"/"${pass}"@ID < Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Ask a Question Ask for Help Receive Real-Time Help https://www.experts-exchange.com/questions/28122233/0403-057-Syntax-error-at-line-8-'-is-not-matched.html Create a Freelance Project Hire for a Full Time Job Ways http://www.ibm.com/support/docview.wss?uid=swg1IC84578 to Get Help Expand Search Submit Close Search Login Join Today Products BackProducts Gigs Live Careers Vendor Services Groups Website Testing Store Headlines Experts Exchange > Questions > 0403-057 Syntax error at line 8 : `<' is not matched. Want to Advertise Here? Solved 0403-057 syntax error Syntax error at line 8 : `<' is not matched. Posted on 2013-05-08 Unix OS Shell Scripting 1 Verified Solution 2 Comments 3,707 Views Last Modified: 2013-05-08 I am getting this error in my ksh script. I am trying to read the data from a view in the database I specify via command line argument and write 057 syntax error the output to a file: #!/usr/bin/ksh if [ $# -gt 0 ] then export ORACLE_SID=$1 ORAENV_ASK=NO . oraenv sqlplus -s /nolog < WHEN SINGLE QUOTES APPEAR IN THE COMMAND. z/os Subscribe to this APAR By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product. Notify me when this APAR changes. Notify me when an APAR for this component changes. APAR status Closed as program error. Error description Problem Description: In DPF environment the db2_all command may fail with a ksh syntax error when a single quote appears within single quotes. For example : db2_all "db2 'values(current DBPARTITIONNUM)' " ksh: 0403-057 Syntax error at line 1 : `(' is not expected. ksh: 0403-057 Syntax error at line 1 : `(' is not expected. ksh: 0403-057 Syntax error at line 1 : `(' is not expected. ksh: 0403-057 Syntax error at line 1 : `(' is not expected. ksh: 0403-057 Syntax error at line 1 : `(' is not expected. ksh: 0403-057 Syntax error at line 1 : `(' is not expected. Local fix Possible workarounds are : 1. db2_all "db2 values\(current DBPARTITIONNUM\) " or 2. db2_all 'db2 "values(current DBPARTITIONNUM)" ' Problem summary **************************************************************** * USERS AFFECTED: * * DPF customer using a single quote in db2_all command. * **************************************************************** * PROBLEM DESCRIPTION: * * Problem Description: * * In DPF environment the db2_all command may fail with a ksh * * syntax error when a single quote appears within single * * quotes. * * For example : * * * * db2_all "db2 'values(current DBPARTITIONNUM)' " * * ksh: 0403-057 Syntax error at line 1 : `(' is not expected. * * ksh: 0403-057 Syntax error at line 1 : `(' is not expected. * * ksh: 0403-057 Syntax error at line 1 : `(' is not expected. * * ksh: 0403-057 Syntax err