#!/bin/bash TOPO=$1 source /home/apu/testbed_files/apu-tb-opt/scripts/mesh/topology.sh set_topology "$TOPO" || exit 1 # SSH and start script on each node for id in "${NODES[@]}"; do nodename=$(printf "apu%02d" $id) echo "==> Connecting to $nodename" ssh -o ConnectTimeout=3 "$nodename" 'bash /opt/start_script.sh' & done wait echo "All start scripts triggered."