#!/bin/sh # Get the current buffer content. mkfifo buffer.fifo trap 'rm buffer.fifo' EXIT :send write -method overwrite buffer.fifo cat buffer.fifo