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

@@ -0,0 +1,16 @@
#!/bin/sh
JOB_NAME="analysisErpGoodsJob"
HOST="10.100.241.11"
PORT="18210"
curl -X POST "http://${HOST}:${PORT}/gcone_batch/batch/run/${JOB_NAME}" -H "Content-Type: application/json"
#result
if [ $? -eq 0 ];then
echo "Batch job ${JOB_NAME} executed successfully"
else
echo "Failed to execute batch job ${JOB_NAME}."
fi

View File

@@ -0,0 +1,15 @@
#!/bin/sh
JOB_NAME="analysisOrderListJob"
HOST="10.100.241.11"
PORT="18210"
curl -X POST "http://${HOST}:${PORT}/gcone_batch/batch/run/${JOB_NAME}" -H "Content-Type: application/json"
#result
if [ $? -eq 0 ];then
echo "Batch job ${JOB_NAME} executed successfully"
else
echo "Failed to execute batch job ${JOB_NAME}."
fi

View File

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

View File

@@ -0,0 +1,15 @@
#!/bin/sh
JOB_NAME="atmcPurchsDcsnJob"
HOST="10.100.241.11"
PORT="18210"
curl -X POST "http://${HOST}:${PORT}/gcone_batch/batch/run/${JOB_NAME}" -H "Content-Type: application/json"
#result
if [$? -eq 0];then
echo "Batch job ${JOB_NAME} executed successfully"
else
echo "Failed to execute batch job ${JOB_NAME}."
fi

View File

@@ -1,18 +0,0 @@
#!/bin/sh
# JOB_NAME을 sampleJob으로 설정
JOB_NAME="atmcPurchsDcsnJob"
# Tomcat이 실행 중인 호스트와 포트
HOST="172.31.20.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."
else
echo "Failed to execute batch job ${JOB_NAME}."
fi

View File

@@ -0,0 +1,15 @@
#!/bin/sh
JOB_NAME="autodepositCronJob"
HOST="10.100.241.11"
PORT="18210"
curl -X POST "http://${HOST}:${PORT}/gcone_batch/batch/run/${JOB_NAME}" -H "Content-Type: application/json"
#result
if [$? -eq 0];then
echo "Batch job ${JOB_NAME} executed successfully"
else
echo "Failed to execute batch job ${JOB_NAME}."
fi

View File

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

View File

@@ -0,0 +1,15 @@
#!/bin/sh
JOB_NAME="clearPersonalInfoShopJob"
HOST="10.100.241.11"
PORT="18210"
curl -X POST "http://${HOST}:${PORT}/gcone_batch/batch/run/${JOB_NAME}" -H "Content-Type: application/json"
#result
if [$? -eq 0];then
echo "Batch job ${JOB_NAME} executed successfully"
else
echo "Failed to execute batch job ${JOB_NAME}."
fi

View File

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

View File

@@ -1,2 +0,0 @@
# 시퀀스 초기화(일배치) - 매일 00시 00분
* * * * * cd /home/batch_shell/shell; ./sampleJob_run.sh > /dev/null 2>&1

View File

@@ -0,0 +1,15 @@
#!/bin/sh
JOB_NAME="cshRciptRegistJob"
HOST="10.100.241.11"
PORT="18210"
curl -X POST "http://${HOST}:${PORT}/gcone_batch/batch/run/${JOB_NAME}" -H "Content-Type: application/json"
#result
if [$? -eq 0];then
echo "Batch job ${JOB_NAME} executed successfully"
else
echo "Failed to execute batch job ${JOB_NAME}."
fi

15
shell/epJob_run.sh Normal file
View File

@@ -0,0 +1,15 @@
#!/bin/sh
JOB_NAME="epJob"
HOST="10.100.241.11"
PORT="18210"
curl -X POST "http://${HOST}:${PORT}/gcone_batch/batch/run/${JOB_NAME}" -H "Content-Type: application/json"
#result
if [$? -eq 0];then
echo "Batch job ${JOB_NAME} executed successfully"
else
echo "Failed to execute batch job ${JOB_NAME}."
fi

View File

@@ -0,0 +1,15 @@
#!/bin/sh
JOB_NAME="giftOrderCancelJob"
HOST="10.100.241.11"
PORT="18210"
curl -X POST "http://${HOST}:${PORT}/gcone_batch/batch/run/${JOB_NAME}" -H "Content-Type: application/json"
#result
if [$? -eq 0];then
echo "Batch job ${JOB_NAME} executed successfully"
else
echo "Failed to execute batch job ${JOB_NAME}."
fi

15
shell/logJob_run.sh Normal file
View File

@@ -0,0 +1,15 @@
#!/bin/sh
JOB_NAME="logJob"
HOST="10.100.241.11"
PORT="18210"
curl -X POST "http://${HOST}:${PORT}/gcone_batch/batch/run/${JOB_NAME}" -H "Content-Type: application/json"
#result
if [$? -eq 0];then
echo "Batch job ${JOB_NAME} executed successfully"
else
echo "Failed to execute batch job ${JOB_NAME}."
fi

View File

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

View File

@@ -1,10 +1,10 @@
#!/bin/sh #!/bin/sh
# JOB_NAME을 sampleJob으로 설정 # JOB_NAME을 sampleJob으로 설정
JOB_NAME="npayRvwJob" JOB_NAME="mlgExpUpdtStatus"
# Tomcat이 실행 중인 호스트와 포트 # Tomcat이 실행 중인 호스트와 포트
HOST="172.31.20.11" HOST="10.100.241.11"
PORT="18210" PORT="18210"
# REST API 호출 # REST API 호출

View File

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

View File

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

View File

@@ -0,0 +1,16 @@
#!/bin/sh
JOB_NAME="mqSelectPuriOrderListJob"
HOST="10.100.241.11"
PORT="18210"
curl -X POST "http://${HOST}:${PORT}/gcone_batch/batch/run/${JOB_NAME}" -H "Content-Type: application/json"
#result
if [ $? -eq 0 ];then
echo "Batch job ${JOB_NAME} executed successfully"
else
echo "Failed to execute batch job ${JOB_NAME}."
fi

View File

@@ -4,7 +4,7 @@
JOB_NAME="mssageCartJob" JOB_NAME="mssageCartJob"
# Tomcat이 실행 중인 호스트와 포트 # Tomcat이 실행 중인 호스트와 포트
HOST="172.31.20.11" HOST="10.100.241.11"
PORT="18210" PORT="18210"
# REST API 호출 # REST API 호출

View File

@@ -0,0 +1,18 @@
#!/bin/sh
# JOB_NAME을 sampleJob으로 설정
JOB_NAME="mssageCartSaleEndJob"
# Tomcat이 실행 중인 호스트와 포트
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."
else
echo "Failed to execute batch job ${JOB_NAME}."
fi

View File

@@ -0,0 +1,18 @@
#!/bin/sh
# JOB_NAME을 sampleJob으로 설정
JOB_NAME="mssageCertCouponBirthdayJob"
# Tomcat이 실행 중인 호스트와 포트
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."
else
echo "Failed to execute batch job ${JOB_NAME}."
fi

View File

@@ -0,0 +1,18 @@
#!/bin/sh
# JOB_NAME을 sampleJob으로 설정
JOB_NAME="mssageCouponBirthdayJob"
# Tomcat이 실행 중인 호스트와 포트
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."
else
echo "Failed to execute batch job ${JOB_NAME}."
fi

View File

@@ -4,7 +4,7 @@
JOB_NAME="mssageCouponEndJob" JOB_NAME="mssageCouponEndJob"
# Tomcat이 실행 중인 호스트와 포트 # Tomcat이 실행 중인 호스트와 포트
HOST="172.31.20.11" HOST="10.100.241.11"
PORT="18210" PORT="18210"
# REST API 호출 # REST API 호출

View File

@@ -0,0 +1,18 @@
#!/bin/sh
# JOB_NAME을 sampleJob으로 설정
JOB_NAME="mssageCouponMbrGradJob"
# Tomcat이 실행 중인 호스트와 포트
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."
else
echo "Failed to execute batch job ${JOB_NAME}."
fi

View File

@@ -4,7 +4,7 @@
JOB_NAME="mssageDepositRequestJob" JOB_NAME="mssageDepositRequestJob"
# Tomcat이 실행 중인 호스트와 포트 # Tomcat이 실행 중인 호스트와 포트
HOST="172.31.20.11" HOST="10.100.241.11"
PORT="18210" PORT="18210"
# REST API 호출 # REST API 호출

View File

@@ -0,0 +1,18 @@
#!/bin/sh
# JOB_NAME을 sampleJob으로 설정
JOB_NAME="mssageGconeMlgExpJob"
# Tomcat이 실행 중인 호스트와 포트
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."
else
echo "Failed to execute batch job ${JOB_NAME}."
fi

View File

@@ -0,0 +1,18 @@
#!/bin/sh
# JOB_NAME을 sampleJob으로 설정
JOB_NAME="mssageGiftDlvyAddrJob"
# Tomcat이 실행 중인 호스트와 포트
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."
else
echo "Failed to execute batch job ${JOB_NAME}."
fi

View File

@@ -1,10 +1,10 @@
#!/bin/sh #!/bin/sh
# JOB_NAME을 sampleJob으로 설정 # JOB_NAME을 sampleJob으로 설정
JOB_NAME="mssageRvwJob" JOB_NAME="mssageLgqySndJob"
# Tomcat이 실행 중인 호스트와 포트 # Tomcat이 실행 중인 호스트와 포트
HOST="172.31.20.11" HOST="10.100.241.11"
PORT="18210" PORT="18210"
# REST API 호출 # REST API 호출

View File

@@ -1,10 +1,10 @@
#!/bin/sh #!/bin/sh
# JOB_NAME을 sampleJob으로 설정 # JOB_NAME을 sampleJob으로 설정
JOB_NAME="mssageUpdtSttusJob" JOB_NAME="mssageMarktAgreJob"
# Tomcat이 실행 중인 호스트와 포트 # Tomcat이 실행 중인 호스트와 포트
HOST="172.31.20.11" HOST="10.100.241.11"
PORT="18210" PORT="18210"
# REST API 호출 # REST API 호출

View File

@@ -4,7 +4,7 @@
JOB_NAME="mssageMlgExpJob" JOB_NAME="mssageMlgExpJob"
# Tomcat이 실행 중인 호스트와 포트 # Tomcat이 실행 중인 호스트와 포트
HOST="172.31.20.11" HOST="10.100.241.11"
PORT="18210" PORT="18210"
# REST API 호출 # REST API 호출

View File

@@ -0,0 +1,18 @@
#!/bin/sh
# JOB_NAME을 sampleJob으로 설정
JOB_NAME="mssageNonMbrMarktAgreJob"
# Tomcat이 실행 중인 호스트와 포트
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."
else
echo "Failed to execute batch job ${JOB_NAME}."
fi

View File

@@ -0,0 +1,16 @@
#!/bin/sh
JOB_NAME="mssagePuriOrderCancelJob"
HOST="10.100.241.11"
PORT="18210"
curl -X POST "http://${HOST}:${PORT}/gcone_batch/batch/run/${JOB_NAME}" -H "Content-Type: application/json"
#result
if [ $? -eq 0 ];then
echo "Batch job ${JOB_NAME} executed successfully"
else
echo "Failed to execute batch job ${JOB_NAME}."
fi

View File

@@ -0,0 +1,16 @@
#!/bin/sh
JOB_NAME="mssageSendPuriAllimJob"
HOST="10.100.241.11"
PORT="18210"
curl -X POST "http://${HOST}:${PORT}/gcone_batch/batch/run/${JOB_NAME}" -H "Content-Type: application/json"
#result
if [ $? -eq 0 ];then
echo "Batch job ${JOB_NAME} executed successfully"
else
echo "Failed to execute batch job ${JOB_NAME}."
fi

View File

@@ -0,0 +1,16 @@
#!/bin/sh
JOB_NAME="mssageSetAllimJob"
HOST="10.100.241.11"
PORT="18210"
curl -X POST "http://${HOST}:${PORT}/gcone_batch/batch/run/${JOB_NAME}" -H "Content-Type: application/json"
#result
if [ $? -eq 0 ];then
echo "Batch job ${JOB_NAME} executed successfully"
else
echo "Failed to execute batch job ${JOB_NAME}."
fi

View File

@@ -4,7 +4,7 @@
JOB_NAME="mssageUpdtSttusJob" JOB_NAME="mssageUpdtSttusJob"
# Tomcat이 실행 중인 호스트와 포트 # Tomcat이 실행 중인 호스트와 포트
HOST="172.31.20.11" HOST="10.100.241.11"
PORT="18210" PORT="18210"
# REST API 호출 # REST API 호출

View File

@@ -1,18 +0,0 @@
#!/bin/sh
# JOB_NAME을 sampleJob으로 설정
JOB_NAME="nonMbrTrgtJob"
# Tomcat이 실행 중인 호스트와 포트
HOST="172.31.20.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."
else
echo "Failed to execute batch job ${JOB_NAME}."
fi

15
shell/orderCancelJob.sh Normal file
View File

@@ -0,0 +1,15 @@
#!/bin/sh
JOB_NAME="orderCancelJob"
HOST="10.100.241.11"
PORT="18210"
curl -X POST "http://${HOST}:${PORT}/gcone_batch/batch/run/${JOB_NAME}" -H "Content-Type: application/json"
#result
if [$? -eq 0];then
echo "Batch job ${JOB_NAME} executed successfully"
else
echo "Failed to execute batch job ${JOB_NAME}."
fi

15
shell/posJob.sh Normal file
View File

@@ -0,0 +1,15 @@
#!/bin/sh
JOB_NAME="posJob"
HOST="10.100.241.11"
PORT="18210"
curl -X POST "http://${HOST}:${PORT}/gcone_batch/batch/run/${JOB_NAME}" -H "Content-Type: application/json"
#result
if [$? -eq 0];then
echo "Batch job ${JOB_NAME} executed successfully"
else
echo "Failed to execute batch job ${JOB_NAME}."
fi

15
shell/posJob_run.sh Normal file
View File

@@ -0,0 +1,15 @@
#!/bin/sh
JOB_NAME="posJob"
HOST="10.100.241.11"
PORT="18210"
curl -X POST "http://${HOST}:${PORT}/gcone_batch/batch/run/${JOB_NAME}" -H "Content-Type: application/json"
#result
if [$? -eq 0];then
echo "Batch job ${JOB_NAME} executed successfully"
else
echo "Failed to execute batch job ${JOB_NAME}."
fi

View File

@@ -0,0 +1,15 @@
#!/bin/sh
JOB_NAME="rcpmnyCnfirmAtmcMtchgJob"
HOST="10.100.241.11"
PORT="18210"
curl -X POST "http://${HOST}:${PORT}/gcone_batch/batch/run/${JOB_NAME}" -H "Content-Type: application/json"
#result
if [$? -eq 0];then
echo "Batch job ${JOB_NAME} executed successfully"
else
echo "Failed to execute batch job ${JOB_NAME}."
fi

View File

@@ -4,7 +4,7 @@
JOB_NAME="sampleJob" JOB_NAME="sampleJob"
# Tomcat이 실행 중인 호스트와 포트 # Tomcat이 실행 중인 호스트와 포트
HOST="172.31.20.11" HOST="10.100.241.11"
PORT="18210" PORT="18210"
# REST API 호출 # REST API 호출

View File

@@ -1,10 +1,10 @@
#!/bin/sh #!/bin/sh
# JOB_NAME을 sampleJob으로 설정 # JOB_NAME을 sampleJob으로 설정
JOB_NAME="mssageCartSaleJob" JOB_NAME="scheduleSttusJob"
# Tomcat이 실행 중인 호스트와 포트 # Tomcat이 실행 중인 호스트와 포트
HOST="172.31.20.11" HOST="10.100.241.11"
PORT="18210" PORT="18210"
# REST API 호출 # REST API 호출

View File

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

View File

@@ -1,18 +0,0 @@
#!/bin/sh
# JOB_NAME을 sampleJob으로 설정
JOB_NAME="strUpdtJob"
# Tomcat이 실행 중인 호스트와 포트
HOST="172.31.20.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."
else
echo "Failed to execute batch job ${JOB_NAME}."
fi

15
shell/strUpdtJob_run.sh Normal file
View File

@@ -0,0 +1,15 @@
#!/bin/sh
JOB_NAME="strUpdtJob"
HOST="10.100.241.11"
PORT="18210"
curl -X POST "http://${HOST}:${PORT}/gcone_batch/batch/run/${JOB_NAME}" -H "Content-Type: application/json"
#result
if [ $? -eq 0 ]; then
echo "Batch job ${JOB_NAME} executed successfully"
else
echo "Failed to execute batch job ${JOB_NAME}."
fi

View File

@@ -1,18 +0,0 @@
#!/bin/sh
# JOB_NAME을 sampleJob으로 설정
JOB_NAME="tmpTrgtCartJob"
# Tomcat이 실행 중인 호스트와 포트
HOST="172.31.20.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."
else
echo "Failed to execute batch job ${JOB_NAME}."
fi

View File

@@ -1,18 +0,0 @@
#!/bin/sh
# JOB_NAME을 sampleJob으로 설정
JOB_NAME="tmpTrgtCartJob"
# Tomcat이 실행 중인 호스트와 포트
HOST="172.31.20.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."
else
echo "Failed to execute batch job ${JOB_NAME}."
fi

View File

@@ -1,18 +0,0 @@
#!/bin/sh
# JOB_NAME을 sampleJob으로 설정
JOB_NAME="tmpTrgtCouponEndJob"
# Tomcat이 실행 중인 호스트와 포트
HOST="172.31.20.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."
else
echo "Failed to execute batch job ${JOB_NAME}."
fi

View File

@@ -1,18 +0,0 @@
#!/bin/sh
# JOB_NAME을 sampleJob으로 설정
JOB_NAME="tmpTrgtDepositRequestJob"
# Tomcat이 실행 중인 호스트와 포트
HOST="172.31.20.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."
else
echo "Failed to execute batch job ${JOB_NAME}."
fi

View File

@@ -1,18 +0,0 @@
#!/bin/sh
# JOB_NAME을 sampleJob으로 설정
JOB_NAME="tmpTrgtMlgExpJob"
# Tomcat이 실행 중인 호스트와 포트
HOST="172.31.20.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."
else
echo "Failed to execute batch job ${JOB_NAME}."
fi

View File

@@ -1,18 +0,0 @@
#!/bin/sh
# JOB_NAME을 sampleJob으로 설정
JOB_NAME="tmpTrgtNonMbrMarktAgreJob"
# Tomcat이 실행 중인 호스트와 포트
HOST="172.31.20.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."
else
echo "Failed to execute batch job ${JOB_NAME}."
fi

View File

@@ -1,18 +0,0 @@
#!/bin/sh
# JOB_NAME을 sampleJob으로 설정
JOB_NAME="tmpTrgtRvwJob"
# Tomcat이 실행 중인 호스트와 포트
HOST="172.31.20.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."
else
echo "Failed to execute batch job ${JOB_NAME}."
fi