1 Answer
1

Dupx is a simple utility to remap files of an already running program.
Shells like Bash allow easy input/output/error redirection at the time
the program is started using >, < - like syntax, e.g.: echo 'redirect
this text' > /tmp/stdout will redirect output of echo to /tmp/stdout.

Standard shells however do not provide the capability of remapping
(redirecting) of output (or input, or error) for an already started
process. Dupx tries to address this problem by using dup(2) system
call from inside gdb(1). Dupx is currently implemented as a simple
shell wrapper around a gdb script.