File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
Decode Tomcat startup.sh script.
Joined: Sep 20, 2001
Aug 03, 2004 16:06:00
startup.sh contains these lines. Can anyone help explain what do they do? Thanks!
# resolve links - $0 may be a softlink
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '.*/.*' > /dev/null; then
# Check that target executable exists
if [ ! -x "$PRGDIR"/"$EXECUTABLE" ]; then
echo "Cannot find $PRGDIR/$EXECUTABLE"
echo "This file is needed to run this program"
exec "$PRGDIR"/"$EXECUTABLE" start "$@"
BJ - SCJP and SCWCD
We love Java programming. It is contagious, very cool, and lot of fun. - Peter Coad, Java Design
I agree. Here's the link:
subject: Decode Tomcat startup.sh script.
Java and Shell scripts
error starting up 2nd instance of tomcat
Multiple instances of Tomcat 6, class loading experiencing problems for each instance
Trouble running tomcat on Ubuntu Linux.
Tomcat fails to restart with "Address already in use" exception
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014