summaryrefslogtreecommitdiff
path: root/farm/magnus/screen-magnus
diff options
context:
space:
mode:
Diffstat (limited to 'farm/magnus/screen-magnus')
-rwxr-xr-xfarm/magnus/screen-magnus10
1 files changed, 10 insertions, 0 deletions
diff --git a/farm/magnus/screen-magnus b/farm/magnus/screen-magnus
new file mode 100755
index 0000000..a54c8f9
--- /dev/null
+++ b/farm/magnus/screen-magnus
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+if [ $# == 0 ]; then
+ TARGET=${0#*-}
+else
+ TARGET=$1
+fi
+
+scp $(dirname $0)/screenrc $TARGET-mgr:
+ssh $TARGET-mgr -t screen -x -R -S ttyS1 -c screenrc /dev/ttyS1