The below command is to execute the JAR file from any of the Unix or Linux based server and JAR file execution happens in the backend so that the remaining steps of the script will be executed in parallel.
/usr/java8/bin/java -jar $JAR_FILE &
Sample Shell Script:
#!/bin/ksh
#*******************************************************************************
# Name : HH_TEST_SHELL
# Date : 19-MAY-2023
# By : AskHareesh
# Description : Execute JAR File
#
#*******************************************************************************
JAR_FILE=`echo $1|cut -f9 -d' '|cut -f2 -d'"'`
echo "JAR_FILE: $JAR_FILE"
/usr/java8/bin/java -jar $JAR_FILE &

1029B12E
ReplyDeleteKars
Zonguldak
Kırıkkale
Van
Muş
Trabzon
Isparta
Tekirdağ
Urfa