Say I start a process in the terminal and it sends output to standard error while it runs. I want to move the process into the background and also silence it at the same time.
Is there a way to do this without stopping the process and starting it again using &
and > /dev/null 2>&1
? I'm wondering if there is some command that performs bg
and can change the output descriptors of the target process too.
SIGSTOP
to a process (or as you say doing CTRL+Z) does not silence a process. It stops a process! – andcoz Oct 14 '11 at 22:38