The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



Thread: Script error
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 01-22-2008
System Shock's Avatar
System Shock System Shock is offline
Registered User
 

Join Date: May 2006
Location: Tau Ceti V
Posts: 403
..yeah, but you are calling it.

Let's say I have a script called tester that calls a script named script2...

Code:
# cat tester

/opt/script2

#
Now, script2 has a syntax error; in this case, ommited the "fi" at the end of it.

Code:
# cat /opt/script2

COUNT=0
if (( ${COUNT} < 3 )); then
echo "is bigger"
else

#
If I run tester, I get:
Code:
# ./tester

/opt/script2[2]: syntax error at line 4 : `else' unmatched

#
I don't see an if/then statement in your script, so it must be from catalina.sh, or something else catalina.sh is calling.
Reply With Quote