#!/bin/bash

# run this on the aqm-machine

cd "$(dirname $(readlink -f $BASH_SOURCE))"
. ../vars.sh

if [ -n "$IFACE_AQM" ]; then
    echo "This script must be run on the AQM machine"
    exit 1
fi

if [ -z $TMUX ]; then
    echo "Run this inside tmux!"
    exit 1
fi

cmds=()
cmds[0]="watch -n .2 ./show_setup.sh -vir $IFACE_CLIENTS"
#cmds[1]="watch -n .2 ./show_setup.sh -vir $IFACE_SERVERA"

sn="setup-$(date +%s)"

i=0
for cmd in "${cmds[@]}"; do
    i=$(($i+1))
    if [ $i -eq 1 ]; then
        tmux new-window -n $sn $cmd
    else
        tmux split-window -t $sn $cmd
        tmux select-layout -t $sn even-horizontal
    fi
done

tmux select-layout -t $sn even-horizontal
tmux set-window -t $sn synchronize-panes

#!/bin/bash

# run this on the aqm-machine

cd "$(dirname $(readlink -f $BASH_SOURCE))"
. ../vars.sh

if [ -n "$IFACE_AQM" ]; then
    echo "This script must be run on the AQM machine"
    exit 1
fi

if [ -z $TMUX ]; then
    echo "Run this inside tmux!"
    exit 1
fi

cmds=()
cmds[0]="watch -n .2 ./show_setup.sh -v $IFACE_CLIENTS"
#cmds[1]="watch -n .2 ./show_setup.sh -v $IFACE_SERVERA"

sn="setup-$(date +%s)"

i=0
for cmd in "${cmds[@]}"; do
    i=$(($i+1))
    if [ $i -eq 1 ]; then
        tmux new-window -n $sn $cmd
    else
        tmux split-window -t $sn $cmd
        tmux select-layout -t $sn even-horizontal
    fi
done

tmux select-layout -t $sn even-horizontal
tmux set-window -t $sn synchronize-panes

Use less verbose output for monitoring setup
views: Use less verbose output for monitoring setup
