Thanks for the answers ! I will check reptyr out. I have looked at trying
to rewrite https://github.com/jerome-pouiller/reredirect which seems to be
similar to what I am looking for. I want this because I would like to write
a application to catch stdout of another process for logging purposes.
I am starting to look into intercepting a running processes output. I know
how to do this manually by look at /proc/$PID/fd/1 or by using gdb etc. I
do not want to use os.exec and then join the child processes output with
the parent. I want to start Process A and capture the output of A in
Proc