tadd server-side utility scripts - cosmo - front and backend for Markov-Chain Monte Carlo inversion of cosmogenic nuclide concentrations
git clone git://src.adamsgaard.dk/cosmo
Log
Files
Refs
README
LICENSE
---
commit 0aeb00c74d2bc605cc3671ef4ce9e81d1d9e08de
parent 16f7cd5df5451353c22d60b78c261020d3f579f0
Author: Anders Damsgaard 
Date:   Wed, 11 Nov 2015 12:27:10 +0100

add server-side utility scripts

Diffstat:
  A console.sh                          |      23 +++++++++++++++++++++++
  A cosmo_matlab_starter.sh             |       2 ++

2 files changed, 25 insertions(+), 0 deletions(-)
---
diff --git a/console.sh b/console.sh
t@@ -0,0 +1,23 @@
+#!/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
diff --git a/cosmo_matlab_starter.sh b/cosmo_matlab_starter.sh
t@@ -0,0 +1,2 @@
+#!/bin/bash
+cd /home/adc/cosmo/matlab && bash run.sh