If I run a application using the bash and I put it into the background via
STRG+z
bg
commandIf now the process is printing to stdout
the shell prints this output. This output is not interesting for me and I do not like my shell to be polluted with it.
Is there a way to redirect the output form this process to /dev/null
I could have achieved the very same by directly starting the application in background with (./application &> /dev/null)&
, but my application is already running and I would not like to quit it and restart it.
One option is:
How to redirect output of an already running process
Redirect STDERR / STDOUT of a process AFTER it's been started, using command line?
https://etbe.coker.com.au/2008/02/27/redirecting-output-from-a-running-process/