3 # RunTestEnvironment.sh
5 # This script will run a test environment inside tmux
10 echo >&2 '*** ABORTED ***'
11 echo "An error occurred. Exiting..." >&2
19 # If an error occurs, the abort() function will be called.
20 #----------------------------------------------------------
25 # Start new tmux session
27 tmux new -d -s uccvend
29 tmux new-window -t uccvend:1 -n 'dispense' 'watch date'
30 tmux new-window -t uccvend:2 -n 'Vendserver' 'watch date'
31 tmux new-window -t uccvend:3 -n 'virtualsnack' 'watch date'
32 tmux new-window -t uccvend:4 -n 'virtualcoke' 'watch date'
34 tmux new-window -t uccvend:5 -n 'Shell'
37 tmux select-window -t uccvend:5
38 tmux -2 attach-session -t uccvend