#!/bin/bash export FAIRMQ_PATH=@FAIRMQ_BIN_DIR@ msgSize="1000000" if [[ $1 =~ ^[0-9]+$ ]]; then msgSize=$1 fi READOUT="fairmq-ex-readout-readout" READOUT+=" --id readout1" READOUT+=" --msg-size $msgSize" READOUT+=" --channel-config name=rb,type=pair,method=bind,address=tcp://localhost:7777,transport=shmem" xterm -geometry 80x23+0+0 -hold -e @EX_BIN_DIR@/$READOUT & BUILDER="fairmq-ex-readout-builder" BUILDER+=" --id builder1" BUILDER+=" --output-name bs" BUILDER+=" --channel-config name=rb,type=pair,method=connect,address=tcp://localhost:7777,transport=shmem" BUILDER+=" name=bs,type=pair,method=connect,address=tcp://localhost:7778,transport=shmem" xterm -geometry 80x23+500+0 -hold -e @EX_BIN_DIR@/$BUILDER & SENDER="fairmq-ex-readout-sender" SENDER+=" --id sender1" SENDER+=" --input-name bs" SENDER+=" --channel-config name=bs,type=pair,method=bind,address=tcp://localhost:7778,transport=shmem" SENDER+=" name=sr,type=pair,method=connect,address=tcp://localhost:7779,transport=ofi" xterm -geometry 80x23+1000+0 -hold -e @EX_BIN_DIR@/$SENDER & RECEIVER="fairmq-ex-readout-receiver" RECEIVER+=" --id receiver1" RECEIVER+=" --channel-config name=sr,type=pair,method=bind,address=tcp://localhost:7779,transport=ofi" xterm -geometry 80x23+1500+0 -hold -e @EX_BIN_DIR@/$RECEIVER &