3 ms·
I'd personally like a way to redirect the output of a running process (either `bg`d or `disown`ed) to a log file. The only way I've come across are horrible hac
by Intermernet 11y ago
I'd personally like a way to redirect the output of a running process (either `bg`d or `disown`ed) to a log file. The only way I've come across are horrible hacks using gdb[1] or strace.
This should be easier. Anyone know of any better ways? I'd like to be able to do something like `proclog <pid> <stdout output file> <stderr output file>`.
[1]: http://stackoverflow.com/questions/593724/redirect-stderr-stdout-of-a-process-after-its-been-started-using-command-lin http://stackoverflow.com/questions/593724/redirect-stderr-st...
- tyingq 11y agoThere's this: http://www.isi.edu/~yuri/dupx/dupx_man.html http://www.isi.edu/~yuri/dupx/dupx_man.html Still uses gdb under the covers, but presents a front end close to what you are asking for.