A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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.
Tomcat fails to restart with "Address already in use" exception
error starting up 2nd instance of tomcat
Java and Shell scripts
Multiple instances of Tomcat 6, class loading experiencing problems for each instance
Trouble running tomcat on Ubuntu Linux.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015