summaryrefslogtreecommitdiff
path: root/tictactoe/run
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2017-12-19 03:55:35 -0600
committerepoch <epoch@hacking.allowed.org>2017-12-19 03:55:35 -0600
commit4a080b8f4f061f1c7cbf0d6d996d535dc3f2db35 (patch)
tree031d006c0fdbf14697c49f69591a343d39791596 /tictactoe/run
parentac2f7a61cd4060a617ae012ead020755c0ef4902 (diff)
downloadhackvr-4a080b8f4f061f1c7cbf0d6d996d535dc3f2db35.tar.gz
hackvr-4a080b8f4f061f1c7cbf0d6d996d535dc3f2db35.zip
make scripts create their own named pipes and attempt to rm them
Diffstat (limited to 'tictactoe/run')
-rwxr-xr-xtictactoe/run2
1 files changed, 2 insertions, 0 deletions
diff --git a/tictactoe/run b/tictactoe/run
index c38c9cc..f470780 100755
--- a/tictactoe/run
+++ b/tictactoe/run
@@ -1,4 +1,6 @@
#!/bin/bash
turn=$( expr $RANDOM % 2)
echo "go. player: $turn"
+mknod p p
stdbuf -oL cat board p | ../src/hackvr_x11 "$USER" | ./game.sh > p
+rm p