4 ms·
My favourite one: attach to the process in question using gdb, and run: p dup2(open("/dev/null", 0), 1) p dup2(open("/dev/null", 0), 2)
by anon8r398rt 12y ago
My favourite one:
attach to the process in question using gdb, and run:
p dup2(open("/dev/null", 0), 1)
p dup2(open("/dev/null", 0), 2)
detach
quit
From: https://stackoverflow.com/questions/593724/redirect-stderr-stdout-of-a-process-after-its-been-started-using-command-lin https://stackoverflow.com/questions/593724/redirect-stderr-s...
- agumonkey 12y agoreattach without gdb http://unix.stackexchange.com/questions/4034/how-can-i-disown-a-running-process-and-associate-it-to-a-new-screen-shell http://unix.stackexchange.com/questions/4034/how-can-i-disow...