The “|” pipe operator connects the stdout of one process to the stdin of another. Is there any way to create a pipe that connects the stderr of one process to the stdin of another keeping the stdout alive in my terminal? Searching on the internet gave me no information at all…
Thank you in advance,
Michalis.
You could use named pipes:
This should keep stdin & stdout of “do-something” in your terminal und redirect stderr to /my/pipe, which is read by “error-handler”.
(I hope this work, have no bash to test)