From: Badlop Date: Fri, 12 Feb 2010 21:11:15 +0000 (+0100) Subject: Improve TTY code to work on more operating systems (thanks to Jan Koum) X-Git-Tag: v2.1.3~46 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a71b47ea27371568ae62e02337509744e0c33d92;p=ejabberd Improve TTY code to work on more operating systems (thanks to Jan Koum) --- diff --git a/src/ejabberdctl.template b/src/ejabberdctl.template index d425a18c9..5567a90af 100644 --- a/src/ejabberdctl.template +++ b/src/ejabberdctl.template @@ -169,7 +169,7 @@ debug () read foo fi echo "" - TTY=`tty | cut -f4 -d'/'` + TTY=`tty | sed -e 's/.*\///g'` $EXEC_CMD "$ERL \ $NAME debug-${TTY}-${ERLANG_NODE} \ -remsh $ERLANG_NODE \