Commit 0aeb00c7 authored by Anders Damsgaard's avatar Anders Damsgaard

add server-side utility scripts

parent 16f7cd5d
#!/bin/sh
SESSION=cosmo
echo "starting $SESSION tmux session"
tmux has-session -t $SESSION
if [ $? != 0 ]
then
cd ~/cosmo
# Create new session, name it, name the window, detach
tmux new-session -s $SESSION -n matlab -d
tmux send-keys -t $SESSION './cosmo_matlab_starter.sh' C-m
tmux new-window -t $SESSION -n rsync
tmux send-keys -t $SESSION 'watch -n 10 ./update.sh' C-m
tmux new-window -t $SESSION -n top
tmux send-keys -t $SESSION 'top' C-m
tmux select-window -t $SESSION:1 # select first pane
fi
tmux attach -t $SESSION
#!/bin/bash
cd /home/adc/cosmo/matlab && bash run.sh
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment