. $OSPL_HOME/examples/functions

check_osplhome

get_libjsig

startOSPL

echo "=== Launching HelloWorld "
LD_PRELOAD=$OSPL_JSIG $SPLICE_JAVA -jar sub/face_HelloWorld_sub.jar | tee subResult.txt&
cmd_pid=$!

LD_PRELOAD=$OSPL_JSIG $SPLICE_JAVA -jar pub/face_HelloWorld_pub.jar | tee pubResult.txt
PUB_RESULT=$?

wait $cmd_pid &> /dev/null
SUB_RESULT=$?

checkResultZero $SUB_RESULT $PUB_RESULT HelloWorld

stopOSPL
