#!/bin/sh #SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) SCRIPT=`realpath $0` SCRIPT_DIR=`dirname $SCRIPT` tmux new-session -d -c ${SCRIPT_DIR}/src/kapi tmux split-window -h -c ${SCRIPT_DIR}/src/hello_driver tmux select-pane -t 0 tmux split-window -v tmux select-pane -t 1 tmux send-keys 'sudo dmesg -w' Enter tmux select-pane -t 0 tmux send-keys 'make && sudo ./load.sh' tmux select-pane -t 2 tmux send-keys 'make && sudo ./run.sh' tmux select-pane -t 1 tmux -2 attach-session -d