gdb -p PID call dup2(open("/tmp/output.txt", 577, 0644), 1) detach quit
gdb
stdout, printf
Advertising: