Thursday, June 18, 2009

circular bash pipes

Today I had the terrible idea of a circular bash pipe. Turns out, you can do this easily with fifos. Here's a simple yes-like program done with a circular pipe, to demonstrate:

echo "y" | cat - fifo | tee fifo

You may now return to your regularly scheduled sanity.

0 comments:

Creative Commons License All content on this blog is licensed under a Creative Commons Attribution-Share Alike 3.0 license unless otherwise noted.