projects
/
svn42.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e19d573
)
dart.fifo in temp dir
author
Christian Pointner
<equinox@realraum.at>
Tue, 5 Jul 2011 12:09:53 +0000
(12:09 +0000)
committer
Christian Pointner
<equinox@realraum.at>
Tue, 5 Jul 2011 12:09:53 +0000
(12:09 +0000)
dart/start-dart.sh
patch
|
blob
|
history
diff --git
a/dart/start-dart.sh
b/dart/start-dart.sh
index
092d592
..
5b82cbd
100755
(executable)
--- 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