tstart.sh - dmt - source code for the kunsthal art installation
HTML git clone git://parazyd.org/dmt.git
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
tstart.sh (720B)
---
1 #!/bin/sh
2 # See LICENSE file for copyright and license details.
3 # Creates a tmux session, starting all that is needed.
4
5 tmux start-server
6 tmux new-session -d -s dmt -n 'dmt'
7
8 # Start the HTTP API daemon
9 tmux send-keys "cd http-api && ./http_listener.py" C-m
10
11 # Start the MIDI handler daemon
12 tmux splitw -v -p 50
13 tmux send-keys "cd midi-handler && ./midi_handler.py" C-m
14
15 # Start the Asterisk log parsing daemon
16 tmux splitw -h -p 50
17 tmux send-keys "ssh -p2501 root@kunsthalpbx 'killall python3 ; killall tail ; cd dmt/freepbx-glue && tail -f /var/log/asterisk/full | ./freepbx_glue.py'" C-m
18
19 # Start Twinkle
20 tmux splitw -v -p 50
21 tmux send-keys "DISPLAY=:0 twinkle" C-m
22
23 # Attach to the session
24 tmux attach-session -t dmt