#!/bin/sh
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# -----------------------------------------------------------------------------
# Configuration Test Script for the CATALINA Server
# -----------------------------------------------------------------------------
# Better OS/400 detection: see Bugzilla 31132
os400=false
case "`uname`" in
OS400*) os400=true;;
esac
# resolve links - $0 may be a softlink
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
# Check that target executable exists
if $os400; then
# -x will Only work on the os400 if the files are:
# 1. owned by the user
# 2. owned by the PRIMARY group of the user
# this will not work if the user belongs in secondary groups
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" configtest "$@"
configtest.sh
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
- 文/潘曉璐 我一進店門瞳遍,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人菌羽,你說我怎么就攤上這事掠械。” “怎么了注祖?”我有些...
- 文/不壞的土叔 我叫張陵猾蒂,是天一觀的道長。 經(jīng)常有香客問我是晨,道長婚夫,這世上最難降的妖魔是什么? 我笑而不...
- 正文 為了忘掉前任署鸡,我火速辦了婚禮,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘靴庆。我一直安慰自己时捌,他們只是感情好,可當(dāng)我...
- 文/花漫 我一把揭開白布炉抒。 她就那樣靜靜地躺著奢讨,像睡著了一般。 火紅的嫁衣襯著肌膚如雪焰薄。 梳的紋絲不亂的頭發(fā)上拿诸,一...
- 文/蒼蘭香墨 我猛地睜開眼鞭光,長吁一口氣:“原來是場噩夢啊……” “哼吏廉!你這毒婦竟也來了?” 一聲冷哼從身側(cè)響起惰许,我...
- 正文 年R本政府宣布,位于F島的核電站返敬,受9級特大地震影響遂庄,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜劲赠,卻給世界環(huán)境...
- 文/蒙蒙 一涛目、第九天 我趴在偏房一處隱蔽的房頂上張望秸谢。 院中可真熱鬧,春花似錦霹肝、人聲如沸估蹄。這莊子的主人今日做“春日...
- 文/蒼蘭香墨 我抬頭看了看天上的太陽臭蚁。三九已至,卻和暖如春讯赏,著一層夾襖步出監(jiān)牢的瞬間垮兑,已是汗流浹背。 一陣腳步聲響...
推薦閱讀更多精彩內(nèi)容
- 演示環(huán)境 問題現(xiàn)象当犯? 為什么會出現(xiàn)這種問題? 剛開始以為是我腳本本身有語法錯誤割疾,但是打開腳本細細看了下嚎卫,并沒有發(fā)現(xiàn)...
- source xxx.sh: 直接在當(dāng)前 shell 中執(zhí)行該腳本。sh xxx.sh: 在當(dāng)前 shell 中新...
- 1.概述 JavaWeb項目發(fā)布tomcat容器奠支,我們一般是到tomcat下的bin/startup.sh直接運行...
- 今天想在ubuntu下面使用腳本文件.sh。忘記怎么編譯啦抚芦,就搜了一堆資料倍谜,并在此記錄一下,以后方便查閱叉抡。 文件內(nèi)...