Dynamic stderr redirrection
by ychaouche from LinuxQuestions.org on (#55KRH)
Hello,
I have launched a graphical program from the terminal, but it keeps polluting it with debug messages. How can I redirect its stderr (to /dev/null for example) while it is running ?
I am not looking for "run it with 2>/dev/null" type of answers, it is already running. That solution means I have to stop it and run it again. I know it's not a big deal, but as I often forget to run graphical apps with proper stderr redirection, I'd like to know if there's a way to dynamically change stderr ?


I have launched a graphical program from the terminal, but it keeps polluting it with debug messages. How can I redirect its stderr (to /dev/null for example) while it is running ?
I am not looking for "run it with 2>/dev/null" type of answers, it is already running. That solution means I have to stop it and run it again. I know it's not a big deal, but as I often forget to run graphical apps with proper stderr redirection, I'd like to know if there's a way to dynamically change stderr ?