Open eunja511005 opened 1 year ago
echo $JAVA_HOME
#!/bin/bash
export JAVA_HOME=/home/opc/java/openjdk-8u342-b07/bin
export WORK_HOME=/usr/local/lib/tomcat/webapps/ROOT
export BUILD_PATH=${WORK_HOME}/WEB-INF/classes
export CLASS_PATH=${BUILD_PATH}
export CLASS_PATH=${CLASS_PATH}:${WORK_HOME}/WEB-INF/lib/*
#!/bin/bash
lockfile="/usr/local/lib/tomcat/webapps/my_batch_job.lock"
if [ -e "$lockfile" ]; then
echo "Batch job is already running."
exit 1
fi
touch "$lockfile"
trap 'rm -f "$lockfile"' EXIT
source /usr/local/lib/tomcat/webapps/batchshell/script_env.sh
export executeBatch="batchshell.Batch_Test"
${JAVA_HOME}/java -cp ${CLASS_PATH} $executeBatch $1 $2
크론탭 설치를 위해 OS 확인
크론탭 설치
크론탭 잘 설치 되었는지 확인