spawn a subprocess to read from it