Home > Syntax Error > Unmatched Error In Unix

Unmatched Error In Unix

Contents

Jalal Hajigholamali replied May 16, 2013 Hi, Break line: "then for cell in $cell_list " to - then for cell in $cell_list do .... ... but i use sqlend eachtime. Resources Join | Indeed Jobs | Advertise Copyright © 1998-2016 ENGINEERING.com, Inc. By using this site, you accept the Terms of Use and Rules of Participation. End of content United StatesHewlett Packard Enterprise International CorporateCorporateAccessibilityCareersContact UsCorporate ResponsibilityEventsHewlett Packard LabsInvestor RelationsLeadershipNewsroomSitemapPartnersPartnersFind a PartnerPartner navigate here

fraction line in French Outer Tie-rod removal Split python tuple in subtuples with capacity limit in functional programming style My advisor refuses to write me a recommendation for my PhD application If it's just shell script commands, just "CMDS" works. newsgator Bloglines iNezha Recent Posts Combine Multiple Rows to a Single Row inTSQLsolution from web for SSIS "can not convert between unicode and non-unicode string datatypes"Useful SSIS tips and tricks from Which towel will dry faster? http://www.unix.com/shell-programming-and-scripting/36201-unmatched-ksh-script-using-sftp.html

Syntax Error At Line Unmatched

csh may be some script or may be actual csh shell. now Am stuck with another error in my code. You will get error. Click Here to join Tek-Tips and talk with other members!

  1. share|improve this answer edited Mar 16 '14 at 19:18 answered Mar 16 '14 at 18:58 Adrian Frühwirth 16.7k43850 Thanks!
  2. Atleast use a code tags to format.
  3. Whoo!
  4. UNIX & Linux Forums > Top Forums > Shell Programming and Scripting Member Name Remember Me?
  5. Showing results for  Search instead for  Do you mean  Menu Categories Solutions IT Transformation Internet of Things Topics Big Data Cloud Security Infrastructure Strategy and Technology Products Cloud Integrated Systems Networking
  6. Whitespace is any one of a number of characters that you can't see, like a blank or space (" "), or a tab character.

Top Best Answer 0 Mark this reply as the best answer?(Choose carefully, this can't be changed) Yes | No Saving... Why are only passwords hashed? RE: '<<' unmatched Error feherke (Programmer) 23 Sep 08 03:46 HiQuote (SamBones):feherke's suggestion of adding the dash ("<<-!") is the best because then it doesn't matter if you have leading spaces If Unmatched Error In Unix Shell Script various environment variables set here ...

It should look like either :CODE --> elgrandeperro & KenCunningham & olded#!/usr/bin/ksh############################################################instance.ksh #############################################################DBALIST="[email protected], [email protected]";export DBALISTORATAB=/var/opt/oracle/oratabecho "`date` "echo"Oracle Database(s) Status `hostname` :\n"db=`egrep -i ":Y|:N" $ORATAB | cut -d":" -f1 | grep -v Register now while it's still free! That would make it look like...CODE#!/usr/bin/ksh############################################################instance.ksh #############################################################DBALIST="[email protected], [email protected]";export DBALISTORATAB=/var/opt/oracle/oratabecho "`date` "echo"Oracle Database(s) Status `hostname` :\n"db=`egrep -i ":Y|:N" $ORATAB | cut -d":" -f1 | grep -v "\#" | grep -v "\*"`for i error message when changing to csh...

No spaces please The Profile Name is already in use Password Notify me of new activity in this group: Real Time Daily Never Keep me informed of the latest: White Papers Syntax Error 'while' Unmatched error message when changing to csh... here is my code:#!/usr/bin/ksh####################################################################instance.ksh ######################################################################DBALIST="[email protected];[email protected]";export DBALISTDBALIST="[email protected]";export DBALISTORATAB=/var/opt/oracle/oratabecho "`date` "echo"Oracle Database(s) Status `hostname` :\n"db=`egrep -i ":Y|:N" $ORATAB | cut -d":" -f1 | grep -v "\#" | grep -v "\*"`for i in $db How to encourage 2 year old to co-operate What does 彼女は私ほど自分のことを好きじゃない mean?

Syntax Error At Line If' Unmatched

It's not always so obvious what it's for and again, can be messed up by someone later maintaining the code. read this post here My program thus far is #!/usr/bin/ksh message="" when="" validFiles="" validUsers="" if [ $# -gt 0 ] ; then while getopts w:m: opt do case $opt in w) when=$OPTARG;; m) message=$OPTARG;; \?) Syntax Error At Line Unmatched 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, `newline' Unmatched Search Forums Show Threads Show Posts Tag Search Advanced Search Unanswered Threads Find All Thanked Posts Go to Page... linux operating commands and unix operating commands "<< Unmatched" in

I usually use something like "SQLCMDS" to clearly delimit what the "here file" is for. check over here When I run the code as below the script exits with a message saying ./my_script.sh: line 53: syntax error at line 61: `<<' unmatched I've used set -x and can see Took out the white space and it ran like a champ. it would be nice if you always got a second chance 1 Kudo Reply Yogeeraj_1 Honored Contributor [Founder] Options Mark as New Bookmark Subscribe Subscribe to RSS Feed Highlight Print Email `for' Unmatched

So if it's just us, seems like an awful waste of space, right? error message when changing to csh... Just in case...my 2 cents-- Rod Hills There be dragons... 1 Kudo Reply Tom Geudens Honored Contributor [Founder] Options Mark as New Bookmark Subscribe Subscribe to RSS Feed Highlight Print Email his comment is here error message when changing to csh...

more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed `then' Unmatched In Unix Syntax Error at Line 7 : `for' Unmatched bmagamana asked May 16, 2013 | Replies (10) I run below script but I'm getting error syntax error at line 7 : `for' Jodie Foster in "Contact" 0 Kudos Reply The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise.

one more thing, am I connecting to sql more than once.

How ironic for a shell script forum to drop indents. What is throwing the error -- the oracle client or the script? Paul_Pedant replied May 16, 2013 You have two "do" but only one "done". Ksh Syntax Error Then' Unmatched I already have ` symbol at he end of second SQLEND at line 25 of my initial code tag for your ref..

Here's the relevant part of the script: # ... My log file output is as below Pre_s2a_leadtime.sh started100909 02:51:37 SQL*Plus: Release 9.2.0.3.0 - Production on Fri Oct 9 02:51:37 2009 Copyright (c) 1982, 2002, Oracle Corporation. So I'm building this code in java using NetBeans and literally this code has been working fine the entire time. http://crimsonskysoftware.com/syntax-error/unix-syntax-error-unmatched.html asked 2 years ago viewed 5539 times active 2 years ago Related 2152Check if a directory exists in a shell script1shell script to get the file name from a string0Shell script

I've been hunting for an explanation on and off all day to no avail. –BriteSponge Mar 20 '15 at 16:20 add a comment| Your Answer draft saved draft discarded Sign Forum Operations by The UNIX and Linux Forums current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. I haven't changed … Python 2 Versus Python 3 2 replies I'm pretty brand new to Python and started with Python 2.7.10 for a start but I started thinking of 'updating' and if my level of nesting is getting too deep (usually means I'm being lazy and not making my code modular enough), I just ':set ts=4 sw=4' in vi.Also, if you

The way you were starting the "here file" means that your ending character "!" had to have no leading spaces or tabs in front of it on just that line. You need to instruct CSH that the command is split over multiple lines: FLAG=`sqlplus -silent [email protected] << SQLEND >> ${L2S_RUN_LOG_FILE} \ set pagesize 0 feedback off verify off heading off echo