Created attachment 271801 [details] dupx-0.1.ebuild "dupx - redirect input/output/error of a running process … If you're familiar with dup(2) *nix system call, you know that if you issue it from the process space to an open file, you can remap any file descriptor to a new file and all subsequent calls to read/write(2) will read/write from/to the file. Thus the simple idea behind dupx is to use gdb to attach to the process and then do a dup(2) call on its file descriptors. … Dupx is currently implemented as a simple shell script that drives GDB."