#!/bin/bash domainId=0 usage() { echo "" echo "--------------------------------------------------------------------------------" echo "Usage: $0 -d " echo " -d : domainId > 0 required " echo "--------------------------------------------------------------------------------" echo "" } while getopts ":d:" opt "$@"; do case $opt in d) domainId=$OPTARG ;; \?) echo "Invalid option: -$OPTARG" usage exit 1 ;; esac done if [ $domainId -le 0 ]; then echo "Parameter -d is required" echo "=> Use domainId > 0 (probably the last number of your ip-address)" usage exit 2 fi DDS_BIN_PATH=/opt/RTI/bin ${DDS_BIN_PATH}/rtiddsspy -domainId $domainId -typeWidth 30 -topicWidth 30 -printSample & # Nur auf SHM (TransportBuiltin Type = 2) lauschen #${DDS_BIN_PATH}/rtiddsspy -typeWidth 30 -topicWidth 30 -printSample -transport 2 & #${DDS_BIN_PATH}/rtiddsspy -typeWidth 30 -topicWidth 30 -printSample -qosProfile "myMulticastLib::.dds_profile_without_multicast.xml" & #${DDS_BIN_PATH}/rtiddsspy -typeWidth 30 -topicWidth 30 -printSample -qosFile .dds_profile_without_multicast.xml & exit