. $OSPL_HOME/examples/functions

check_osplhome

startOSPL

echo "=== Launching Listener "

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

sleep 5

./sacpp_listener_pub > pubResult.txt

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

listenerCheckResult

stopOSPL
