I want to bind an existing process to a socket listenning on a specific port with
nc and send input to it (a python interactive shell, an editor...) whatever process, just send a pid and bind it, since file descriptors are meaningless for another process rather than the existing process and can't use
/proc/<pid>/fd/0 to send input to process (the
fds are just symlinks to a terminal).
The last statement is too conclusive to be true since
strace -p<pid> -s9999 -e write can spy STDIN and STDOUT (don't know how)of a process but that's something I will investigate later, from now I want to bind an existing process to a socket and send data to it via a socket.