1.9 KiB
Executable File
1.9 KiB
Executable File
#!/usr/bin/env bash
#
#
os400=false case "`uname`" in OS400*) os400=true;; esac
PRG="$0"
while [ -h "$PRG" ] ; do ls=`ls -ld "$PRG"` link=`expr "$ls" : '.*-> \(.*\)$'` if expr "$link" : '/.*' > /dev/null; then PRG="$link" else PRG=`dirname "$PRG"`/"$link" fi done
PRGDIR=`dirname "$PRG"` EXECUTABLE=catalina.sh
if $os400; then
eval else if [ ! -x "$PRGDIR"/"$EXECUTABLE" ]; then echo "Cannot find $PRGDIR/$EXECUTABLE" echo "The file is absent or does not have execute permission" echo "This file is needed to run this program" exit 1 fi fi
exec "$PRGDIR"/"$EXECUTABLE" start "$@"