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