I want to redirect stdout and stderr to 2 pipes one for each

to create the pipes I used:

    mkfifo -m 0666 /var/run/log_stdout.pipe
    mkfifo -m 0666 /var/run/log_stderr.pipe

and it works fine, but when I try to redirect process hangs

   exec 2>/var/run/log_stderr.pipe


  • If you are doing this on the command line, then you will now notice that the interactive shell's prompt is redirected to your log_stderr.pipe FIFO.
    – Kusalananda
    May 25 '21 at 9:11

You need to open the stderr pipe for reading. Until this is done the open for writing will block

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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