1 2 3 4 5 6 7
#!/bin/sh # Get the current buffer content. mkfifo buffer.fifo trap 'rm buffer.fifo' EXIT :send write -method overwrite buffer.fifo cat buffer.fifo