connection.sh (86B)
1 #!/bin/sh 2 mkfifo x2c c2x 3 4 ./x < c2x | tee >(cat > x2c) & 5 ./c < x2c | tee >(cat > c2x)