In the shell you can do redirection, > <, etc., but how about AFTER a program is started?
Here’s how I came to ask this question, a program running in the background of my terminal keeps outputting annoying text. It’s an important process so I have to open another shell to avoid the text. I’d like to be able to >/dev/null or some other redirection so I can keep working in the same shell.
Short of closing and reopening your tty (i.e. logging off and back on, which may also terminate some of your background processes in the process) you only have one choice left:
e.g.:
You may also consider:
screen; screen provides several virtual TTYs you can switch between without having to open new SSH/telnet/etc, sessionsnohup; this allows you to close and reopen your session without losing any background processes in the… process.