From: Silvio Rhatto Date: Mon, 9 Oct 2017 17:32:54 +0000 (-0300) Subject: Use DIRNAME to invoke wtmux an wscreen X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=e158af4f951880a9f5ad516ea8ab69835e778b9f;p=termplex.git Use DIRNAME to invoke wtmux an wscreen --- diff --git a/shell b/shell index c5612dc..b3ebdfc 100755 --- a/shell +++ b/shell @@ -8,11 +8,12 @@ # We're enforcing a random monitoring por for autossh # as some systems might deny reading /proc/net/tcp like # kernels with grsecurity patch. +DIRNAME="`dirname $0`" BASENAME="`basename $0`" DEST="$1" COMMAND="$2" -#LOCAL_MULTIPLEXER="wscreen" -LOCAL_MULTIPLEXER="wtmux" +#LOCAL_MULTIPLEXER="$DIRNAME/wscreen" +LOCAL_MULTIPLEXER="$DIRNAME/wtmux" MONITORING="-M $(($RANDOM + 1024))" AUTOSSH="autossh $MONITORING"