summaryrefslogtreecommitdiff
path: root/share/hackvr/examples
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2020-04-02 02:40:40 -0500
committerepoch <epoch@hacking.allowed.org>2020-04-02 02:40:40 -0500
commit906c6c4a25fe0542c9741f49d4fcb74b5e5c39b8 (patch)
tree9df0cfbbb62f734664a2297fb5549f7148bfdaff /share/hackvr/examples
parent71886960c496c867cef03e0c1e154f8fb9d58275 (diff)
downloadhackvr-906c6c4a25fe0542c9741f49d4fcb74b5e5c39b8.tar.gz
hackvr-906c6c4a25fe0542c9741f49d4fcb74b5e5c39b8.zip
changed a couple old scripts to not used a named pipe anymore
Diffstat (limited to 'share/hackvr/examples')
-rwxr-xr-xshare/hackvr/examples/draw/run2
-rwxr-xr-xshare/hackvr/examples/tictactoe/run2
2 files changed, 2 insertions, 2 deletions
diff --git a/share/hackvr/examples/draw/run b/share/hackvr/examples/draw/run
index f14b415..699a38c 100755
--- a/share/hackvr/examples/draw/run
+++ b/share/hackvr/examples/draw/run
@@ -1,3 +1,3 @@
#!/bin/sh
mknod p p
-cat p | tee /dev/stderr | ./draw.sh | hackvr $USER > p
+hackvr_coproc ./draw.sh
diff --git a/share/hackvr/examples/tictactoe/run b/share/hackvr/examples/tictactoe/run
index 46a5b44..bf9c87a 100755
--- a/share/hackvr/examples/tictactoe/run
+++ b/share/hackvr/examples/tictactoe/run
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
turn=$( expr $RANDOM % 2)
echo "go. player: $turn"
-socat exec:./game.sh exec:hackvr
+hackvr_coproc ./game.sh