vadviktor
10/17/2014 - 8:21 AM

auto-byobu.sh

byobu-tmux new-session -s dev -d -n mongo
byobu-tmux send-keys -t dev:0 mongo ENTER
byobu-tmux send-keys -t dev:0 'use somedb' ENTER
byobu-tmux send-keys -t dev:0 'db.dropDatabase()' ENTER

byobu-tmux new-window -t dev -n server
byobu-tmux send-keys -t dev:1 'cd ~/server' ENTER
byobu-tmux send-keys -t dev:1 'be bin/run' ENTER

#byobu-tmux select-window -t dev:1

byobu-tmux attach -t dev