. $OSPL_HOME/examples/functions

check_osplhome

startOSPL

echo "=== Launching HelloWorld "
./sac_helloworld_sub  > subResult.txt&
cmd_pid=$!

sleep 5

./sac_helloworld_pub > pubResult.txt 

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

helloworldCheckResult

stopOSPL
