#!/bin/bash rm -fr A B mkfifo A B ./something B & # receive printf ""> A read A read r < B echo "$REPLY"