shell 파일 추가

This commit is contained in:
김현욱
2026-01-15 15:05:30 +09:00
parent b68aa39bfb
commit 92a1a9b58d
53 changed files with 468 additions and 268 deletions

View File

@@ -1,18 +1,16 @@
#!/bin/sh
# JOB_NAME을 sampleJob으로 설정
JOB_NAME="mqGetMbrAppnJob"
# Tomcat이 실행 중인 호스트와 포트
HOST="172.31.20.11"
HOST="10.100.241.11"
PORT="18210"
# REST API 호출
curl -X POST "http://${HOST}:${PORT}/gcone_batch/batch/run/${JOB_NAME}" -H "Content-Type: application/json"
# 결과 확인
if [ $? -eq 0 ]; then
echo "Batch job ${JOB_NAME} executed successfully."
#result
if [$? -eq 0];then
echo "Batch job ${JOB_NAME} executed successfully"
else
echo "Failed to execute batch job ${JOB_NAME}."
fi
echo "Failed to execute batch job ${JOB_NAME}."
fi