Added a BASH script for parallel EPICS clients registering as foreign devices to a BBMD (#586)

This commit is contained in:
Steve Karg
2024-02-29 09:12:35 -06:00
committed by GitHub
parent 5c55683f86
commit 3f4ccb55d5
2 changed files with 53 additions and 2 deletions
+8 -2
View File
@@ -3,6 +3,8 @@
# Launch the local BBMD
./bacserv 47808 BACServer-47808 &
pids[47808]=$!
sleep 1
# spawn the servers
export BACNET_BBMD_ADDRESS=${1}
@@ -14,7 +16,11 @@ do
# note: is there a limit to the number of Foreign Device Registrations?
export BACNET_IP_PORT=$port ; \
./bacserv $port BACServer-$port &
# note: give some BBMD servers time between registrations
# sleep 1
pids[${port}]=$!
done
read -p "Press key to quit"
for pid in ${pids[*]}; do
wait $pid
done