Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Does anyone know how to redirect the output of a program, running from a bash script, to a named pipe IN NON BLOCKING MODE (having 'O_NONBLOCK' flag set)?

share|improve this question

Open it as read-write?

mkfifo wormhole
your_program <>./wormhole
share|improve this answer
Any subsequent program that read the pipe won't receive anything. – magnetik Jun 5 '15 at 9:04

You can use a small program called ftee that is available in this StackOverflow anwser:

As far as I know (and as far as my research went), there are no "bash only" solutions.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.