. $OSPL_HOME/examples/functions

check_osplhome

startOSPL

echo "=== Launching HelloWorld "

./sacpp_helloworld_sub  > subResult.txt &
cmd_pid=$!

sleep 5

./sacpp_helloworld_pub > pubResult.txt

echo "=== Waiting for processes to terminate"
waitForProcessTermination $cmd_pid 30

helloworldCheckResult

stopOSPL
