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)?
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)?
Open it as read-write?
You can use a small program called
ftee
that is available in this StackOverflow anwser: https://stackoverflow.com/a/7620387/403614As far as I know (and as far as my research went), there are no "bash only" solutions.