connect to running process to read stdout