spawn a subprocess to write to it