1 2 3 4 5 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