tconsole.sh - cosmo - front and backend for Markov-Chain Monte Carlo inversion of cosmogenic nuclide concentrations
 (HTM) git clone git://src.adamsgaard.dk/cosmo
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
       tconsole.sh (566B)
       ---
            1 #!/bin/sh
            2 SESSION=cosmo
            3 echo "starting $SESSION tmux session"
            4 
            5 tmux has-session -t $SESSION
            6 if [ $? != 0 ]
            7 then
            8     cd ~/cosmo
            9     # Create new session, name it, name the window, detach
           10 
           11     tmux new-session -s $SESSION -n matlab -d
           12     tmux send-keys -t $SESSION './cosmo_matlab_starter.sh' C-m
           13 
           14     tmux new-window -t $SESSION -n rsync
           15     tmux send-keys -t $SESSION 'watch -n 10 ./update.sh' C-m
           16 
           17     tmux new-window -t $SESSION -n top
           18     tmux send-keys -t $SESSION 'top' C-m
           19 
           20     tmux select-window -t $SESSION:1 # select first pane
           21 
           22 fi
           23 tmux attach -t $SESSION