aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2010-02-12 22:11:15 +0100
committerBadlop <badlop@process-one.net>2010-02-12 22:11:15 +0100
commita71b47ea27371568ae62e02337509744e0c33d92 (patch)
tree79476af69adc333953936967895b512258fdd8dc
parentAdded support for Jot in ctl and TTY in debug (thanks to Jan Koum) (diff)
Improve TTY code to work on more operating systems (thanks to Jan Koum)
-rw-r--r--src/ejabberdctl.template2
1 files changed, 1 insertions, 1 deletions
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 \