Hi Patrick,

although I lack any Tomcat knowledge as well as MAC OS experience
I think that is a mere scripting issue.

The syntax errors you produced after your commenting out of the
OS check must be a follow on.
I think you only missed to comment every line from the case
block,
so the "case" line should be included.

But the command not found simply implies that there is no "uname"
command in the MAC OS's shell.
Sorry, as said, I have never got access to a MAC why I cannot
tell what kind of shells it's using.
I only read about it that it is a modified FreeBSD (or Darwin?).

My FreeBSD experience is somewhat limited.
I'd suggest to look for a manpage "man environ" or "man -k
environ",
which will list all the environment vars a shell login gets
automatically predefined.
Look at PATH, and what it is containing as the smallest common
denominator.
That's usually the environment init is running under.
But then again I only know the SysV init, and the BSDs have a
much conciser init procedure.

Or login as the user who should start tomcat, and issue "echo
$PATH", "which uname", probably also as root,
"find / -type f -name uname -print".
If you found where the uname command hides in a MAC OS, either
prepend the full path in the catalina.sh to
any occurance of uname, or better yet set PATH explicitly at the
to of the script.




> -----Original Message-----
> From: Patrick Lacson [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 03, 2006 8:25 AM
> To: Tomcat Users List
> Subject: catalina.sh on os x
> 
> 
> Hi all.
> 
> I've been trying to get tomcat 5.5.9 to run on Mac OS 10.4.4 
> and when I run
> the stock catalina.sh script this is what I get.
> 
> $ sh catalina.sh
> : command not found4:
> 'atalina.sh: line 48: syntax error near unexpected token `in
> 'atalina.sh: line 48: `case "`uname`" in
> 
> I then modify the catalina.sh script to comment out the OS 
> check as follows:
> 
> # OS specific support.  $var _must_ be set to either true or
false.
> cygwin=false
> os400=false
> #case "`uname`" in
> #CYGWIN*) cygwin=true;;
> #OS400*) os400=true;;
> #esac
> 
> But when I run it again it complains about:
> 
> $ sh catalina.sh
> : command not found4:
> : command not found2:
> : command not found5:
> catalina.sh: line 203: syntax error near unexpected token
`elif'
> 'atalina.sh: line 203: `elif [ "$1" = "run" ]; then
> 
> I don't see any mismatching if statements.. Anybody have a
working
> catalina.sh on OS X 10.4.4?
> 
> Thanks
> 
> --
> Patrick
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to