0403-057 Syntax Error Ldapsearch
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 0403-057 syntax error Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs 0403-057 syntax error : `>' is not expected Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, 0403 057 syntax error is not matched just 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 ksh: 0403-057 syntax error at line 1 : `(' is not expected. i in `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
0403-057 `' Is Not Expected
Abhineet 3,789936 asked 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 Ma
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 Create
Syntax Error Is Not Expected
a Freelance Project Hire for a Full Time Job Ways to 0403-057 syntax error at line is not matched Get Help Expand Search Submit Close Search Login Join Today Products BackProducts Gigs Live Careers Vendor Services 0403 057 syntax error then is not matched Groups Website Testing Store Headlines Experts Exchange > Questions > AIX ksh 0403-057 Syntax error: `(' is not expected error??? Want to Advertise Here? Solved AIX ksh 0403-057 http://stackoverflow.com/questions/22684462/0403-057-syntax-error-is-not-expected Syntax error: `(' is not expected error??? Posted on 2006-07-11 Unix OS 1 Verified Solution 2 Comments 10,423 Views Last Modified: 2013-11-17 howdy, I am running the command below on AIX, 5.3. its the oracle exp program. Im pretty sure the syntax is correct. exp scott/tiger file=test.dmp tables=(lsc_account) instead of following my command as instructed. Its refusing with https://www.experts-exchange.com/questions/21915219/AIX-ksh-0403-057-Syntax-error-'-is-not-expected-error.html this lousy excuse 0403-057 Syntax error: `(' is not expected error any ideas? 0 Question by:citywesthomes Facebook Twitter LinkedIn Google LVL 20 Active 1 day ago Best Solution bytfewster You're missing a $ symbol; The ksh syntax to assign the output of a command to a variable is: VARIABLE=$(command) or VARIABLE=`command` Go to Solution 2 Comments LVL 14 Overall: Level 14 Unix OS 13 Message Expert Comment by:sjm_ee2006-07-12 A quick search using google suggests that the round brackets are not required. Try it as follows: exp scott/tiger file=test.dmp tables=lsc_account 0 LVL 20 Overall: Level 20 Unix OS 18 Message Active 1 day ago Accepted Solution by:tfewster2006-07-12 You're missing a $ symbol; The ksh syntax to assign the output of a command to a variable is: VARIABLE=$(command) or VARIABLE=`command` 0 Write Comment First Name Please enter a first name Last Name Please enter a last name Email We will never share this with anyone. Comment Submit Your Comment By clicking you are agreeing to Experts E
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 https://www.experts-exchange.com/questions/28515583/remove-spaces-from-a-input-value.html Help Create a Freelance Project Hire for a Full Time Job https://bugzilla.mcs.anl.gov/globus/buglist.cgi?short_desc_type=allwordssubstr&remaction=&query_format=advanced&order=bugs.priority,bugs.bug_status%2C%20bugs.priority%2C%20map_assigned_to.login_name%2C%20bugs.bug_id&query_based_on= Ways 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 > remove spaces from a input value Want to Advertise Here? Solved remove spaces from a input syntax error value Posted on 2014-09-10 Programming Languages-Other Scripting Languages Unix OS Shell Scripting 1 Verified Solution 6 Comments 211 Views Last Modified: 2014-09-16 Hello, I am trying to remove spaces from a input value to my script. Need some help with the syntax, for example, number=$1 customer=$2 loaction=$3 newcustomer=$(awk '{gsub(" ","-",$2);print $2}') echo $newcustomer Thanks, 0 Question 057 syntax error by:bje Facebook Twitter LinkedIn Google LVL 68 Active today Best Solution bywoolmilkporc Do you really mean "translate spaces in awk's $2 (= field #2 of the input string, which may be the content of $customer ) to hyphens and store the result in newcustomer"? To make this work you'll need Go to Solution 5 Comments LVL 68 Overall: Level 68 Unix OS 53 Shell Scripting 30 Scripting Languages 11 Message Active today Accepted Solution by:woolmilkporc2014-09-10 Do you really mean "translate spaces in awk's $2 (= field #2 of the input string, which may be the content of $customer ) to hyphens and store the result in newcustomer"? To make this work you'll need a field separator other than "space" in $customer, and you must put "$2" at the shell level between quotes. customer="$2" For bash: newcustomer=$(awk -F"field_separator" '{gsub(" ","-",$2);print $2}' <<< $customer) For ksh (works in bash as well): newcustomer=$(echo $customer | awk -F"field_separator" '{gsub(" ","-",$2);print $2}') But if you mean "translate spaces in $custom