aboutsummaryrefslogtreecommitdiffstats
path: root/launch-all-encoders.sh
blob: 699fe4fdcb34f814ab9e461048d70cf6a0134dcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
# launch each encoder in its own screen window

set -e

if [ -f ./configuration.sh ]
then

    source ./configuration.sh

    for radio in ${all_radios[*]}
    do
        echo "Launching $radio encoder"
        screen -t "Audio Encoder $radio" ./radio.sh "$radio"
        sleep 0.4
    done

    for mot in ${all_mot[*]}
    do
        echo "Launching $mot mot-encoder"
        screen -t "MOT Encoder $mot" ./mot.sh "$mot"
	sleep 0.4
    done
else
    echo "Error: No site configuration available!"
    exit 1
fi