From df2878739c84febf5b8689ae9e38d954a332cefb Mon Sep 17 00:00:00 2001 From: Badlop Date: Fri, 12 Feb 2010 22:11:15 +0100 Subject: [PATCH] Improve TTY code to work on more operating systems (thanks to Jan Koum) --- src/ejabberdctl.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 \