From: Christian Pointner Date: Tue, 5 Jul 2011 12:09:53 +0000 (+0000) Subject: dart.fifo in temp dir X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=b9e5ad7a53b12323270be65d5c5c00dee972e7cc;p=svn42.git dart.fifo in temp dir --- diff --git a/dart/start-dart.sh b/dart/start-dart.sh index 092d592..5b82cbd 100755 --- a/dart/start-dart.sh +++ b/dart/start-dart.sh @@ -8,14 +8,21 @@ fi mode=$1 shift -FIFO=/tmp/dart.fifo -rm -f $FIFO +FIFO_D=`mktemp -d` +FIFO=$FIFO_D/dart.fifo mkfifo $FIFO -stty -echo +trap signal_handler INT TERM + +signal_handler() +{ + rm -rf $FIFO_D +} + +stty -echo ssh dart stty -F /dev/ttyDart 57600 ssh dart cat /dev/ttyDart >$FIFO & ./eet $FIFO | ./dart-$mode.pl $* | ./dart-soundonly.pl | ../dart-sounds/src/dart-sounds ../dart-sounds/media > /dev/null -rm -f $FIFO +rm -rf $FIFO_D exit 0