The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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
Getting error "syntax error at line 78 : `<' unmatched" sshah1001 Shell Programming and Scripting 1 05-08-2008 06:41 PM
"syntax error at line 21 :'done' unexpected." error message" ibroxy Shell Programming and Scripting 3 08-08-2007 07:45 AM
I got error like...syntax error on line 1, teletype koti_rama UNIX for Advanced & Expert Users 2 07-07-2007 08:35 PM
0403-057 Syntax error at line 70. pls help OMONI UNIX for Dummies Questions & Answers 2 07-20-2005 05:37 AM
Line Error dreams5617 Shell Programming and Scripting 1 12-15-2004 10:29 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-11-2007
skyineyes skyineyes is offline
Registered User
  
 

Join Date: Jun 2007
Posts: 150
error line?

The file access permissions do not allow the specified action.
CONFIG_FILE_CREATION.sh[7]: -x: 0403-005 Cannot create the specified file.


hi .

seeing above how can we determine the number of line where error has occured?

expr: 0402-050 Syntax error.



i am getting above error also. what is the line number and what is the possible error?
  #2 (permalink)  
Old 07-11-2007
vino's Avatar
vino vino is offline Forum Staff  
Supporter (in vino veritas)
  
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,798
Quote:
Originally Posted by skyineyes View Post
The file access permissions do not allow the specified action.
CONFIG_FILE_CREATION.sh[7]: -x: 0403-005 Cannot create the specified file.


hi .

seeing above how can we determine the number of line where error has occured?
The digit 7 in CONFIG_FILE_CREATION.sh[7] is a good starting point.
  #3 (permalink)  
Old 07-11-2007
skyineyes skyineyes is offline
Registered User
  
 

Join Date: Jun 2007
Posts: 150
Vino:

What about this line

expr: 0402-050 Syntax error.


I guess following code is giving this error

exec 3<&0
exec 0<$SQL_RESULT_FILE
count=1
while read line
do
if [ $count = 4 ]
then
BOUND=$line
break
fi
count=`expr $count + 1`
done
exec 0<&3
rm -rf ${SQL_RESULT_FILE}
BOUND=`expr $BOUND + 3`


Quote:
Originally Posted by vino View Post
The digit 7 in CONFIG_FILE_CREATION.sh[7] is a good starting point.
  #4 (permalink)  
Old 07-11-2007
vino's Avatar
vino vino is offline Forum Staff  
Supporter (in vino veritas)
  
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,798
Quote:
Originally Posted by skyineyes View Post
What about this line

expr: 0402-050 Syntax error.
You must be having some line in the script where you have used expr.

Why dont you look through your script before you post ? You will certainly learn somethings like that.
  #5 (permalink)  
Old 07-11-2007
skyineyes skyineyes is offline
Registered User
  
 

Join Date: Jun 2007
Posts: 150
Please check above the updated code lines. i really dont see any problem in expr

Quote:
Originally Posted by vino View Post
You must be having some line in the script where you have used expr.

Why dont you look through your script before you post ? You will certainly learn somethings like that.
  #6 (permalink)  
Old 07-11-2007
vino's Avatar
vino vino is offline Forum Staff  
Supporter (in vino veritas)
  
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,798
Why dont you replace


Code:
count=`expr $count + 1`

with the much easier


Code:
count=$(($count + 1))

Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:00 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0