Improve TTY code to work on more operating systems (thanks to Jan Koum)

This commit is contained in:
Badlop 2010-02-12 22:11:15 +01:00
parent 2cca00acc0
commit a71b47ea27
1 changed files with 1 additions and 1 deletions

View File

@ -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 \