Fork a process and read/write from it