diff options
l---------[-rwxr-xr-x] | assh | 28 | ||||
-rwxr-xr-x[l---------] | shell | 28 | ||||
l--------- | shelll | 2 | ||||
l--------- | shells | 2 |
4 files changed, 30 insertions, 30 deletions
@@ -1,27 +1 @@ -#!/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 +shell
\ No newline at end of file @@ -1 +1,27 @@ -assh
\ No newline at end of file +#!/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 @@ -1 +1 @@ -assh
\ No newline at end of file +shell
\ No newline at end of file @@ -1 +1 @@ -assh
\ No newline at end of file +shell
\ No newline at end of file |