17 lines
324 B
Bash
17 lines
324 B
Bash
#!/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
|
|
|