From aac9ed023d7ca852f9339e3a143b1b40b3045961 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 1 Jun 2013 17:59:33 -0300 Subject: Changing symlink scheme of the shell wrapper --- assh | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) mode change 100755 => 120000 assh (limited to 'assh') diff --git a/assh b/assh deleted file mode 100755 index fb4c8b6..0000000 --- a/assh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash -# -# simple autossh and screen wrapper -# - -BASENAME="`basename $0`" -DEST="$1" -COMMAND="$2" - -if [ -z "$DEST" ]; then - exit 1 -fi - -if [ "$BASENAME" == "asshs" ] || [ "$BASENAME" == "shells" ]; then - # Remote screen shell using autossh - if [ "$COMMAND" == "root" ]; then - autossh $DEST -t -- sudo screen -x - else - autossh $DEST -t -- screen -x $COMMAND - fi -elif [ "$BASENAME" == "shelll" ]; then - # Local screen shell - wscreen $* -else - # Remote shell using autossh - autossh $DEST -t -- $COMMAND -fi diff --git a/assh b/assh new file mode 120000 index 0000000..03e813f --- /dev/null +++ b/assh @@ -0,0 +1 @@ +shell \ No newline at end of file -- cgit v1.2.3